aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/netstore_test.go
diff options
context:
space:
mode:
authorlash <nolash@users.noreply.github.com>2019-02-08 23:57:48 +0800
committerRafael Matias <rafael@skyle.net>2019-02-19 20:09:09 +0800
commit068725c5b09a49b32850a9c10707a86f07fde962 (patch)
tree50e8fa47aa84e442e6116a1e4f4aa460dd3d7c79 /swarm/storage/netstore_test.go
parent710775f43574ca7bdd039abb7474f34a4e4fe9fd (diff)
downloaddexon-068725c5b09a49b32850a9c10707a86f07fde962.tar
dexon-068725c5b09a49b32850a9c10707a86f07fde962.tar.gz
dexon-068725c5b09a49b32850a9c10707a86f07fde962.tar.bz2
dexon-068725c5b09a49b32850a9c10707a86f07fde962.tar.lz
dexon-068725c5b09a49b32850a9c10707a86f07fde962.tar.xz
dexon-068725c5b09a49b32850a9c10707a86f07fde962.tar.zst
dexon-068725c5b09a49b32850a9c10707a86f07fde962.zip
swarm/network, swarm/storage: Preserve opentracing contexts (#19022)
(cherry picked from commit 0c10d376066cb7e57d3bfc03f950c7750cd90640)
Diffstat (limited to 'swarm/storage/netstore_test.go')
-rw-r--r--swarm/storage/netstore_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/storage/netstore_test.go b/swarm/storage/netstore_test.go
index a6a9f551a..88ec6c28f 100644
--- a/swarm/storage/netstore_test.go
+++ b/swarm/storage/netstore_test.go
@@ -46,12 +46,12 @@ type mockNetFetcher struct {
mu sync.Mutex
}
-func (m *mockNetFetcher) Offer(ctx context.Context, source *enode.ID) {
+func (m *mockNetFetcher) Offer(source *enode.ID) {
m.offerCalled = true
m.sources = append(m.sources, source)
}
-func (m *mockNetFetcher) Request(ctx context.Context, hopCount uint8) {
+func (m *mockNetFetcher) Request(hopCount uint8) {
m.mu.Lock()
defer m.mu.Unlock()