Skip to content

Commit

Permalink
adjust the ticker
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Mar 8, 2024
1 parent 4dff763 commit acf9c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tso/global_allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ func (gta *GlobalTSOAllocator) deregisterAllocator() error {
}

func (gta *GlobalTSOAllocator) tryRegister() <-chan *clientv3.LeaseKeepAliveResponse {
ticker := time.NewTicker(time.Second)
ticker := time.NewTicker(100 * time.Millisecond)
defer ticker.Stop()
outerLoop:
for {
Expand Down

0 comments on commit acf9c7d

Please sign in to comment.