MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / newTimeout

Function newTimeout

worker/proposal.go:31–37  ·  view source on GitHub ↗
(retry int)

Source from the content-addressed store, hash-verified

29const baseTimeout time.Duration = 4 * time.Second
30
31func newTimeout(retry int) time.Duration {
32 timeout := baseTimeout
33 for range retry {
34 timeout *= 2
35 }
36 return timeout
37}
38
39// limiter is initialized as part of worker Init.
40var limiter rateLimiter

Callers 2

proposeAndWaitEmulatorFunction · 0.85
proposeAndWaitMethod · 0.85

Calls

no outgoing calls

Tested by 1

proposeAndWaitEmulatorFunction · 0.68