Skip to content

Commit

Permalink
chore(log):adjust log
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourtang committed Jan 4, 2024
1 parent 487b834 commit beaf5e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ func loop(ctx context.Context, notification chan<- Event) {
slog.Error("query data", "err", err)
} else {
if resp != nil && len(resp.Data) > 0 {
slog.Info("found the events", "num", len(resp.Data), "events", resp.Data)
if resp.Data[0].EventId == lastEventID {
slog.Info("the latest event is the same as the last one,skip", "event", resp.Data[0])
continue
}
slog.Info("found the events", "num", len(resp.Data), "events", resp.Data)
lastTs = resp.Data[0].StartAt
update = resp.Data[0].Updates
lastEventID = resp.Data[0].EventId
Expand Down
Empty file added go.sum
Empty file.

0 comments on commit beaf5e4

Please sign in to comment.