MCPcopy
hub / github.com/fvbock/endless / getState

Method getState

endless.go:168–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168func (srv *endlessServer) getState() uint8 {
169 srv.lock.RLock()
170 defer srv.lock.RUnlock()
171
172 return srv.state
173}
174
175func (srv *endlessServer) setState(st uint8) {
176 srv.lock.Lock()

Callers 2

shutdownMethod · 0.95
hammerTimeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected