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

Method Less

roomserver/state/state.go:1264–1266  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

1262
1263func (s stateEntryByStateKeySorter) Len() int { return len(s) }
1264func (s stateEntryByStateKeySorter) Less(i, j int) bool {
1265 return s[i].StateKeyTuple.LessThan(s[j].StateKeyTuple)
1266}
1267func (s stateEntryByStateKeySorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
1268
1269type stateNIDSorter []types.StateSnapshotNID

Callers

nothing calls this directly

Calls 1

LessThanMethod · 0.45

Tested by

no test coverage detected