Skip to content

Commit

Permalink
feat: add update checkpoint sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
wxybear committed May 23, 2023
1 parent a0c4903 commit aad7ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions consumer/checkpoint_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package consumerLibrary

import (
"strings"
"time"

sls "github.com/aliyun/aliyun-log-go-sdk"
"github.com/go-kit/kit/log"
Expand Down Expand Up @@ -97,6 +98,7 @@ func (tracker *DefaultCheckPointTracker) flushCheckPoint() error {
)
return err
}
time.Sleep(100 * time.Millisecond)
}

tracker.savedCheckPoint = tracker.pendingCheckPoint
Expand Down

0 comments on commit aad7ba8

Please # to comment.