refactor(misc): small code refactor

This commit is contained in:
yusing
2025-07-13 14:33:58 +08:00
parent a954ac8946
commit e3b53a548d
3 changed files with 66 additions and 71 deletions

View File

@@ -35,11 +35,8 @@ func DefaultTimeNow() time.Time {
func init() {
go func() {
for {
select {
case <-timeNowTicker.C:
shouldCallTimeNow.Store(true)
}
for range timeNowTicker.C {
shouldCallTimeNow.Store(true)
}
}()
}