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

Method PeerList

IceFireDB-SQLite/pkg/p2p/pubsub.go:199–202  ·  view source on GitHub ↗

A method of PubSub that returns a list of all peer IDs connected to it

()

Source from the content-addressed store, hash-verified

197// A method of PubSub that returns a list
198// of all peer IDs connected to it
199func (cr *PubSub) PeerList() []peer.ID {
200 // Return the slice of peer IDs connected to chat room topic
201 return cr.pstopic.ListPeers()
202}
203
204// A method of PubSub that updates the chat
205// room by subscribing to the new topic

Callers

nothing calls this directly

Calls 1

ListPeersMethod · 0.80

Tested by

no test coverage detected