MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / pushMap

Method pushMap

cli/pkg/common/websocket.go:131–140  ·  view source on GitHub ↗
(k int, c chan []byte)

Source from the content-addressed store, hash-verified

129 return crMap
130}
131func (w *receiver) pushMap(k int, c chan []byte) int {
132 w.receiverMtx.Lock()
133 if _, ok := w.receiver[k]; ok {
134 return 51003
135 }
136 w.receiver[k] = c
137 defer w.receiverMtx.Unlock()
138
139 return 200
140}
141
142func (w *receiver) deleteMap(k int) {
143 w.receiverMtx.Lock()

Callers 1

SendAndReceiveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected