MCPcopy Create free account
hub / github.com/DOSNetwork/core / UnSubscribeMsg

Method UnSubscribeMsg

p2p/server.go:538–546  ·  view source on GitHub ↗

UnSubscribeEvent is a un-subscription operation

(peersFeed ...interface{})

Source from the content-addressed store, hash-verified

536
537// UnSubscribeEvent is a un-subscription operation
538func (n *server) UnSubscribeMsg(peersFeed ...interface{}) {
539 for _, m := range peersFeed {
540 select {
541 case <-n.ctx.Done():
542 case n.unscribeMsg <- reflect.TypeOf(m).String():
543 }
544 }
545 return
546}
547
548func (n *server) Join(bootstrapIP []string) (num int, err error) {
549 select {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected