mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[core] Fix: Do not retry core-kv query when it's not set
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
35b47bca65
commit
264eef4130
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ func (c connector) readCoreMeta(key string, value any, processor func(string) (s
|
|||
if err = helpers.Retry(func() error {
|
||||
err = c.db.First(&data, "name = ?", key).Error
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return ErrCoreMetaNotFound
|
||||
return backoff.NewErrCannotRetry(ErrCoreMetaNotFound)
|
||||
}
|
||||
return errors.Wrap(err, "querying core meta table")
|
||||
}); err != nil {
|
||||
|
|
Loading…
Reference in a new issue