Skip to content

Remove time.After usages #14219

@aanm

Description

@aanm

from @christarazi :

❯ rg "<-time.After(.+)" --glob '!vendor' --glob '!*_test.go'
operator/kvstore_watchdog.go
88:                     <-time.After(defaults.LockLeaseTTL)
100:                    <-time.After(kvstore.HeartbeatWriteInterval)
operator/identity_gc.go
46:                     <-time.After(operatorOption.Config.IdentityGCInterval)
clustermesh-apiserver/main.go
543:                    <-time.After(kvstore.HeartbeatWriteInterval)
pkg/contexthelpers/context.go
37:             case <-time.After(timeout):
pkg/kvstore/etcd.go
759:            case <-time.After(initialConnectionTimeout):
1171:           case <-time.After(e.extraOptions.StatusCheckInterval(allConnected)):
pkg/hubble/relay/observer/observer.go
103:                    case t := <-time.After(bufferDrainTimeout):
pkg/hubble/relay/pool/manager.go
95:                     case <-time.After(m.opts.retryTimeout):
110:                    case <-time.After(m.opts.retryTimeout):
133:                            case <-time.After(m.opts.retryTimeout):
166:            case <-time.After(m.opts.connCheckInterval):
pkg/kvstore/consul.go
394:            case <-time.After(sleepTime):
pkg/k8s/watchers/watcher.go
327:            case <-time.After(option.Config.K8sSyncTimeout):
pkg/backoff/backoff.go
105:    case <-time.After(t):
pkg/kvstore/lock.go
107:            case <-time.After(time.Duration(10) * time.Millisecond):
pkg/kvstore/store/store.go
492:    case <-time.After(listTimeoutDefault):
pkg/trigger/trigger.go
216:            case <-time.After(t.params.sleepInterval):
pkg/node/manager/manager.go
308:            case <-time.After(syncInterval):
pkg/node/store/store.go
176:    case <-time.After(defaults.NodeInitTimeout / 10):
pkg/controller/controller.go
283:            case <-time.After(interval):
pkg/maps/ctmap/gc/gc.go
136:                    case <-time.After(ctmap.GetInterval(mapType, maxDeleteRatio)):
147:    case <-time.After(30 * time.Second):
proxylib/test/accesslog_server.go
65:             case <-time.After(10 * time.Millisecond):
pkg/status/status.go
156:                    case <-time.After(interval):
pkg/allocator/allocator.go
314:                    case <-time.After(listTimeout):
853:                    case <-time.After(option.Config.KVstorePeriodicSync):
pkg/rate/api_limiter.go
733:            case <-time.After(limitWaitDuration):
daemon/cmd/hubble.go
191:                            case <-time.After(30 * time.Second):

Metadata

Metadata

Assignees

Labels

good-first-issueGood starting point for new developers, which requires minimal understanding of Cilium.help-wantedPlease volunteer for this by adding yourself as an assignee!kind/bugThis is a bug in the Cilium logic.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions