libp2p v0.1.0 Libp2p.ConnectionManager View Source

Functions to handle open connections such as tagging and trimming.

Link to this section Summary

Functions

Tag a peer with a label and weight.

Clients can issue a TRIM request to trim open connections.

Remove tag from a peer.

Link to this section Functions

Link to this function

tag_peer(peer, tag, weight) View Source

Tag a peer with a label and weight.

Clients can issue a TRIM request to trim open connections.

Remove tag from a peer.