2021-07-21 10:08:08 +00:00
|
|
|
package signal
|
|
|
|
|
2023-07-05 15:56:34 +00:00
|
|
|
import "github.com/status-im/status-go/eth-node/types"
|
|
|
|
|
2021-07-21 10:08:08 +00:00
|
|
|
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) {
|
2021-07-21 10:08:08 +00:00
|
|
|
send(EventPeerStats, peerStats)
|
|
|
|
}
|