@cryptotaxi247 / kubo / commits / 9e2c3fb8f

expose Len on PQ

Juan Batiz-Benet committed Sep 17, 2014 at 03:17 UTC 9e2c3fb8fc94f5991982eb7bbc0b71f4c5251a48
1 file changed +3
peer/queue/interface.go
+3
@@ -7,6 +7,9 @@ import peer "github.com/jbenet/go-ipfs/peer"
7 // a KeySpace, latency measurements, trustworthiness, reputation, etc.
8 type PeerQueue interface {
9
10 + // Len returns the number of items in PeerQueue
11 + Len() int
12 +
13 // Enqueue adds this node to the queue.
14 Enqueue(*peer.Peer)
15