Skip to content

Commit

Permalink
tiny change.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfei1991 committed Mar 28, 2017
1 parent 9ad30a3 commit fc8c164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ func (do *Domain) LoadTableStatsLoop(ctx context.Context) error {
}
go func(do *Domain) {
ticker := time.NewTicker(lease)
defer ticker.Stop()

for {
select {
case <-ticker.C:
Expand Down

0 comments on commit fc8c164

Please sign in to comment.