aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/testutil/http.go
diff options
context:
space:
mode:
authorJavier Peletier <jm@epiclabs.io>2018-09-30 15:51:11 +0800
committerJavier Peletier <jm@epiclabs.io>2018-10-03 15:12:06 +0800
commitb6ccc06cdaac80d09da17c25b2f450cd1f1b7914 (patch)
tree2413da1a2025e901eecf253399fe4bfebbdd1925 /swarm/testutil/http.go
parent83705ef6aa3645a6305a400fa175e44904a929f7 (diff)
downloadgo-tangerine-b6ccc06cdaac80d09da17c25b2f450cd1f1b7914.tar.gz
go-tangerine-b6ccc06cdaac80d09da17c25b2f450cd1f1b7914.tar.zst
go-tangerine-b6ccc06cdaac80d09da17c25b2f450cd1f1b7914.zip
swarm/storage/feeds: Final package rename and moved files
Diffstat (limited to 'swarm/testutil/http.go')
-rw-r--r--swarm/testutil/http.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/swarm/testutil/http.go b/swarm/testutil/http.go
index 2162da880..05b7c52e0 100644
--- a/swarm/testutil/http.go
+++ b/swarm/testutil/http.go
@@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/swarm/api"
"github.com/ethereum/go-ethereum/swarm/storage"
- "github.com/ethereum/go-ethereum/swarm/storage/mru"
+ "github.com/ethereum/go-ethereum/swarm/storage/feeds"
)
type TestServer interface {
@@ -54,8 +54,8 @@ func NewTestSwarmServer(t *testing.T, serverFunc func(*api.API) TestServer, reso
t.Fatal(err)
}
- rhparams := &mru.HandlerParams{}
- rh, err := mru.NewTestHandler(feedsDir, rhparams)
+ rhparams := &feeds.HandlerParams{}
+ rh, err := feeds.NewTestHandler(feedsDir, rhparams)
if err != nil {
t.Fatal(err)
}
@@ -75,7 +75,7 @@ func NewTestSwarmServer(t *testing.T, serverFunc func(*api.API) TestServer, reso
},
CurrentTime: 42,
}
- mru.TimestampProvider = tss
+ feeds.TimestampProvider = tss
return tss
}
@@ -92,6 +92,6 @@ func (t *TestSwarmServer) Close() {
t.cleanup()
}
-func (t *TestSwarmServer) Now() mru.Timestamp {
- return mru.Timestamp{Time: t.CurrentTime}
+func (t *TestSwarmServer) Now() feeds.Timestamp {
+ return feeds.Timestamp{Time: t.CurrentTime}
}