updates: don't panic on channel too long

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-07-15 22:14:09 -06:00
parent 34832c7ff7
commit 6e0f604209
+1 -2
View File
@@ -130,8 +130,7 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
updatesManager := updates.New(updates.Config{
OnChannelTooLong: func(channelID int64) {
log.Error().Int64("channel_id", channelID).Msg("OnChannelTooLong")
panic("unimplemented channel too long")
log.Warn().Int64("channel_id", channelID).Msg("channel too long")
},
Handler: dispatcher,
Logger: zaplog.Named("gaps"),