Skip to content

Commit

Permalink
format useSyncCommits (#1017)
Browse files Browse the repository at this point in the history
Co-authored-by: wushengyu <[email protected]>
  • Loading branch information
wsy6543 and wushengyu authored Oct 28, 2022
1 parent 464e3a4 commit 029f34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (r *Reader) commitLoop(ctx context.Context, gen *Generation) {
l.Printf("stopped commit for group %s\n", r.config.GroupID)
})

if r.config.CommitInterval == 0 {
if r.useSyncCommits() {
r.commitLoopImmediate(ctx, gen)
} else {
r.commitLoopInterval(ctx, gen)
Expand Down

0 comments on commit 029f34c

Please sign in to comment.