MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / handleOutbound

Method handleOutbound

IceFireDB-SQLProxy/pkg/p2p/pubsub.go:76–82  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

74}
75
76func (ps *PubSub) handleOutbound(ctx context.Context) {
77 for msg := range ps.Outbound {
78 if err := ps.Topic.Publish(ctx, []byte(msg)); err != nil {
79 logrus.Errorf("Failed to publish message: %v", err)
80 }
81 }
82}
83
84// Exit closes the pubsub channels
85func (ps *PubSub) Exit() {

Callers 1

JoinPubSubFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected