Skip to content

Commit

Permalink
メッセージの取得でエラーが発生したときはループを抜けるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
oribe1115 committed Dec 27, 2023
1 parent 1224cd0 commit 27529f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/traqmessage/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (m *MessagePoller) Run() {
messages, err := collectMessages(lastCheckpoint, now, i)
if err != nil {
slog.Error(fmt.Sprintf("Failled to polling messages: %v", err))
continue
break
}

slog.Info(fmt.Sprintf("Collect %d messages", messages.TotalHits))
Expand Down

0 comments on commit 27529f4

Please sign in to comment.