MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / sendNode

Method sendNode

internal/nodehub/hub_test.go:165–169  ·  view source on GitHub ↗
(msg *nodev1.NodeMessage)

Source from the content-addressed store, hash-verified

163}
164
165func (m *nodeMock) sendNode(msg *nodev1.NodeMessage) {
166 m.sendMu.Lock()
167 defer m.sendMu.Unlock()
168 _ = m.stream.Send(msg)
169}
170
171func (m *nodeMock) pushUsage(seq uint64, body []byte) {
172 m.sendNode(&nodev1.NodeMessage{Event: "usage_push", Seq: seq, Body: body})

Callers 3

recvLoopMethod · 0.95
pushUsageMethod · 0.95
TestCallStream_LogFramesFunction · 0.80

Calls 1

SendMethod · 0.65

Tested by

no test coverage detected