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

Function InitPubSub

IceFireDB-PubSub/pkg/ppubsub/pubsubStore.go:26–28  ·  view source on GitHub ↗
(ctx context.Context, p2p *p2p.P2P)

Source from the content-addressed store, hash-verified

24const defaulttopic = "pubsub"
25
26func InitPubSub(ctx context.Context, p2p *p2p.P2P) {
27 pss = NewPubsubStore(ctx, p2p)
28}
29
30type pubsubStore struct {
31 sync.RWMutex // synchronize access to shared variables

Callers 1

NewFunction · 0.92

Calls 1

NewPubsubStoreFunction · 0.85

Tested by

no test coverage detected