Skip to content

Commit

Permalink
Merge pull request #126 from traP-jp/quit-polling-with-error
Browse files Browse the repository at this point in the history
メッセージの取得でエラーが発生したときはループを抜けるようにした
  • Loading branch information
oribe1115 authored Dec 27, 2023
2 parents 1224cd0 + 27529f4 commit c4956f9
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 c4956f9

Please sign in to comment.