aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/mru/testutil.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/storage/mru/testutil.go')
-rw-r--r--swarm/storage/mru/testutil.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/swarm/storage/mru/testutil.go b/swarm/storage/mru/testutil.go
index a30baaa1d..7a5a9e4d9 100644
--- a/swarm/storage/mru/testutil.go
+++ b/swarm/storage/mru/testutil.go
@@ -22,8 +22,7 @@ import (
"path/filepath"
"sync"
- "github.com/ethereum/go-ethereum/p2p/discover"
-
+ "github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/swarm/storage"
)
@@ -41,9 +40,9 @@ func (t *TestHandler) Close() {
type mockNetFetcher struct{}
-func (m *mockNetFetcher) Request(ctx context.Context) {
+func (m *mockNetFetcher) Request(ctx context.Context, hopCount uint8) {
}
-func (m *mockNetFetcher) Offer(ctx context.Context, source *discover.NodeID) {
+func (m *mockNetFetcher) Offer(ctx context.Context, source *enode.ID) {
}
func newFakeNetFetcher(context.Context, storage.Address, *sync.Map) storage.NetFetcher {