MCPcopy Create free account
hub / github.com/daodst/chat / Less

Method Less

roomserver/storage/shared/storage.go:1412–1414  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

1410
1411func (s stateEntryByStateKeySorter) Len() int { return len(s) }
1412func (s stateEntryByStateKeySorter) Less(i, j int) bool {
1413 return s[i].StateKeyTuple.LessThan(s[j].StateKeyTuple)
1414}
1415func (s stateEntryByStateKeySorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] }

Callers

nothing calls this directly

Calls 1

LessThanMethod · 0.45

Tested by

no test coverage detected