From d115a77707c9d0a209a205bee8e94b0613911784 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 14 Nov 2018 13:45:29 +0100 Subject: [PATCH] swarm/network: Remove prematurely exported Pof member in kademlia --- swarm/network/kademlia.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go index bbac883963..86db2a8dd1 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -99,7 +99,6 @@ type Kademlia struct { nDepth int // stores the last neighbourhood depth nDepthC chan int // returned by DepthC function to signal neighbourhood depth change addrCountC chan int // returned by AddrCountC function to signal peer count change - Pof func(pot.Val, pot.Val, int) (int, bool) } // NewKademlia creates a Kademlia table for base address addr @@ -114,7 +113,6 @@ func NewKademlia(addr []byte, params *KadParams) *Kademlia { KadParams: params, addrs: pot.NewPot(nil, 0), conns: pot.NewPot(nil, 0), - Pof: pof, } }