MCPcopy
hub / github.com/dgraph-io/dgraph / Max

Function Max

x/x.go:620–625  ·  view source on GitHub ↗

Max returns the maximum of the two given numbers.

(a, b uint64)

Source from the content-addressed store, hash-verified

618
619// Max returns the maximum of the two given numbers.
620func Max(a, b uint64) uint64 {
621 if a > b {
622 return a
623 }
624 return b
625}
626
627// ExponentialRetry runs the given function until it succeeds or can no longer be retried.
628func ExponentialRetry(maxRetries int, waitAfterFailure time.Duration,

Callers 15

applyProposalMethod · 0.92
SetMembershipStateMethod · 0.92
leaseMethod · 0.92
storePendingMethod · 0.92
TimestampsMethod · 0.92
printRaftFunction · 0.92
BumpToMethod · 0.92
processReqChMethod · 0.92
RunMapperFunction · 0.92
processCDCEventsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected