Skip to content

Commit

Permalink
fix: consumer pull logs 3 times (#286)
Browse files Browse the repository at this point in the history
* fix: consumer pull logs 3 times

* retract mod version
  • Loading branch information
crimson-gao committed Jun 14, 2024
1 parent 13f3d20 commit 5c752df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions consumer/consumer_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ func (consumer *ConsumerClient) pullLogs(shardId int, cursor string) (gl *sls.Lo
"tryTimes", retry+1)
}
time.Sleep(200 * time.Millisecond)
} else {
return gl, plm, nil
}
}
// If you can't retry the log three times, it will return to empty list and start pulling the log cursor,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ require (
gopkg.in/yaml.v2 v2.2.8 // indirect
)

retract v0.1.73
retract [v0.1.70, v0.1.78]

0 comments on commit 5c752df

Please sign in to comment.