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

Method recvLoop

internal/nodeagent/session.go:149–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (s *session) recvLoop() error {
150 for {
151 msg, err := s.stream.Recv()
152 if err != nil {
153 return err
154 }
155 s.dispatch(msg)
156 }
157}
158
159func (s *session) dispatch(msg *nodev1.ServerMessage) {
160 // 1) cancel 帧:取消 inflight。

Callers 1

runSessionFunction · 0.45

Calls 1

dispatchMethod · 0.95

Tested by

no test coverage detected