- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UntilContext (0.12 sec)
-
cni/pkg/nodeagent/cni-watcher.go
log.Warnf("got an event for pod %s in namespace %s not found in current pod cache, retry %d of %d", name, namespace, retries, maxStaleRetries) if !sleep.UntilContext(s.ctx, time.Duration(msInterval)*time.Millisecond) { return nil, fmt.Errorf("aborted") } } if err != nil { return nil, fmt.Errorf("failed to get pod %s/%s: %v", namespace, name, err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
cni/pkg/install/install.go
if res.Delay() == 0 { // If its available, we haven't tried to install in over 5s, reset our hits and return i.hits = 0 return } // Otherwise, wait. We only wait up to 1s. sleep.UntilContext(ctx, min(res.Delay(), time.Second)) // Increment our hits. If we are spamming this loop, we will hit this many times as we continually are sending >1 RPS i.hits++
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 09 21:33:51 UTC 2024 - 13.5K bytes - Viewed (0)