expose Len on PQ

This commit is contained in:
Juan Batiz-Benet 2014-09-17 03:17:43 -07:00 committed by Brian Tiger Chow
parent 51eeec1a79
commit 9e2c3fb8fc

View File

@ -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)