This reverts commit e556a816e4.
This commit is contained in:
1 parent
e556a816e4
commit
6421f146a9
35 files changed
+169
-3317
No files matched your search
@@ -66,10 +66,6 @@ func (c *TelegramChannel) startCommandRegistration(ctx context.Context, defs []c
|
||||
if register == nil {
|
||||
register = c.RegisterCommands
|
||||
}
|
||||
delayFn := c.commandRegDelayFn
|
||||
if delayFn == nil {
|
||||
delayFn = commandRegistrationDelay
|
||||
}
|
||||
|
||||
regCtx, cancel := context.WithCancel(ctx)
|
||||
c.commandRegCancel = cancel
|
||||
@@ -95,7 +91,7 @@ func (c *TelegramChannel) startCommandRegistration(ctx context.Context, defs []c
|
||||
return
|
||||
}
|
||||
|
||||
delay := delayFn(attempt)
|
||||
delay := commandRegistrationDelay(attempt)
|
||||
logger.WarnCF("telegram", "Telegram command registration failed; will retry", map[string]any{
|
||||
"error": err.Error(),
|
||||
"retry_after": delay.String(),
|
||||
|
||||
Reference in new issue
Block a user