Skip to content

Commit

Permalink
Merge pull request #63 from askuy/feature/distributedlock_cron
Browse files Browse the repository at this point in the history
distributed lock cron
  • Loading branch information
askuy authored Mar 2, 2021
2 parents 8999238 + 97206dc commit d812664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/ecron/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (c *Component) Start() error {
go func() {
for {
// todo 网络异常情况导致的问题
c.config.locker.Refresh(context.Background(), c.lockerName(), c.config.RefreshTTL)
c.config.locker.Refresh(context.Background(), c.lockerName(), c.config.LockTTL)
time.Sleep(c.config.RefreshTTL)
}
}()
Expand Down

0 comments on commit d812664

Please sign in to comment.