mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 05:17:49 +08:00
expose Len on PQ
This commit is contained in:
parent
51eeec1a79
commit
9e2c3fb8fc
@ -7,6 +7,9 @@ import peer "github.com/jbenet/go-ipfs/peer"
|
||||
// a KeySpace, latency measurements, trustworthiness, reputation, etc.
|
||||
type PeerQueue interface {
|
||||
|
||||
// Len returns the number of items in PeerQueue
|
||||
Len() int
|
||||
|
||||
// Enqueue adds this node to the queue.
|
||||
Enqueue(*peer.Peer)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user