MCPcopy Create free account
hub / github.com/git-bug/git-bug / Write

Method Write

util/lamport/persisted_clock.go:107–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (pc *PersistedClock) Write() error {
108 data := []byte(fmt.Sprintf("%d", pc.counter))
109 return util.WriteFile(pc.root, pc.filePath, data, 0644)
110}

Callers 3

NewPersistedClockFunction · 0.95
IncrementMethod · 0.95
WitnessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected