Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAtomFoundation/SmartIDE
/ getCmd
Method
getCmd
cli/pkg/common/websocket.go:154–160 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
152
}
153
154
func
(w *receiver) getCmd() (v int) {
155
w.cmdMtx.Lock()
156
w.curMaxCmd += 1
157
v = w.curMaxCmd
158
defer
w.cmdMtx.Unlock()
159
return
160
}
161
162
func
(w *receiver) recoverCmd(v int) {
163
if
len(w.receiver) == 0 {
Callers
1
SendAndReceive
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected