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

Function min

worker/match.go:51–59  ·  view source on GitHub ↗
(a, b, c int)

Source from the content-addressed store, hash-verified

49}
50
51func min(a, b, c int) int {
52 if a < b && a < c {
53 return a
54 }
55 if b < c {
56 return b
57 }
58 return c
59}
60
61// matchFuzzy takes in a value (from posting) and compares it to our list of ngram tokens.
62// Returns true if value matches fuzzy tokens, false otherwise.

Callers 9

waitForClusterReadyFunction · 0.85
waitForClusterStableFunction · 0.85
waitForAlphaReadyFunction · 0.85
retryHealthCheckFunction · 0.85
waitForAllGroupLeadersFunction · 0.85
validateClientConnectionFunction · 0.85
retryStartZeroFunction · 0.85
initiateSnapshotStreamFunction · 0.85
levenshteinDistanceFunction · 0.85

Calls

no outgoing calls

Tested by 7

waitForClusterReadyFunction · 0.68
waitForClusterStableFunction · 0.68
waitForAlphaReadyFunction · 0.68
retryHealthCheckFunction · 0.68
waitForAllGroupLeadersFunction · 0.68
validateClientConnectionFunction · 0.68
retryStartZeroFunction · 0.68