status-go/signal/events_wakuv2.go

15 lines
366 B
Go
Raw Permalink Normal View History

package signal
2023-07-05 15:56:34 +00:00
import "github.com/status-im/status-go/eth-node/types"
const (
// EventPeerStats is sent when peer is added or removed.
// it will be a map with capability=peer count k/v's.
EventPeerStats = "wakuv2.peerstats"
)
// SendPeerStats sends discovery.summary signal.
2023-07-05 15:56:34 +00:00
func SendPeerStats(peerStats types.ConnStatus) {
send(EventPeerStats, peerStats)
}