MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / SetNextTurn

Method SetNextTurn

sqlchain/runtime.go:207–211  ·  view source on GitHub ↗

SetNextTurn sets the runtime state to the given turn.

(turn int32)

Source from the content-addressed store, hash-verified

205
206// SetNextTurn sets the runtime state to the given turn.
207func (r *runtime) SetNextTurn(turn int32) {
208 r.stateMutex.Lock()
209 defer r.stateMutex.Unlock()
210 r.nextTurn = turn
211}
212
213// stop sends a signal to the Runtime stop channel by closing it.
214func (r *runtime) stop(dbID proto.DatabaseID) {

Callers 1

syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected