fix: offset

This commit is contained in:
Rogee
2024-09-04 18:57:58 +08:00
parent c34547a3f1
commit e6d808934d
4 changed files with 19 additions and 32 deletions

View File

@@ -66,7 +66,7 @@ func watchCmd(ctx context.Context) error {
}
for {
if err := client.Channel(ctx, channel, cfg, modeHistory); err != nil {
if err := client.Channel(ctx, channel, cfg); err != nil {
if errors.Is(err, errorx.ErrNoNewMessage) {
logger.Info("no new message", zap.Int64("uuid", ch.UUID))
} else {