From 4df538d027d710422bcac723fe4c16883ad7f785 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 9 Aug 2016 20:26:47 -0400 Subject: [PATCH] pass peer to storage --- middleware/storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/storage.go b/middleware/storage.go index f1c6e92..d9848a0 100644 --- a/middleware/storage.go +++ b/middleware/storage.go @@ -48,10 +48,10 @@ type PeerStore interface { // // The returned Peers should strive be: // - as close to length equal to numWant as possible without going over - // - all IPv4 or all IPv6 depending on the provided ipv6 boolean + // - all IPv4 or all IPv6 depending on the provided peer // - if seeder is true, should ideally return more leechers than seeders // - if seeder is false, should ideally return more seeders than leechers - AnnouncePeers(infoHash bittorrent.InfoHash, seeder bool, numWant int, ipv6 bool) (peers []bittorrent.Peer, err error) + AnnouncePeers(infoHash bittorrent.InfoHash, seeder bool, numWant int, p bittorrent.Peer) (peers []bittorrent.Peer, err error) // CollectGarbage deletes all Peers from the PeerStore which are older than // the cutoff time. This function must be able to execute while other methods