MCPcopy
hub / github.com/syncthing/syncthing / Concurrent

Method Concurrent

lib/protocol/vector.go:213–216  ·  view source on GitHub ↗

Concurrent returns true when the two vectors are concurrent.

(b Vector)

Source from the content-addressed store, hash-verified

211
212// Concurrent returns true when the two vectors are concurrent.
213func (v Vector) Concurrent(b Vector) bool {
214 comp := v.Compare(b)
215 return comp == ConcurrentGreater || comp == ConcurrentLesser
216}
217
218// Counter returns the current value of the given counter ID.
219func (v Vector) Counter(id ShortID) uint64 {

Callers 1

TestCompareFunction · 0.80

Calls 1

CompareMethod · 0.95

Tested by 1

TestCompareFunction · 0.64