summaryrefslogtreecommitdiff
path: root/catchup/fetcher_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'catchup/fetcher_test.go')
-rw-r--r--catchup/fetcher_test.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/catchup/fetcher_test.go b/catchup/fetcher_test.go
index 4d62fdde0..65ace1345 100644
--- a/catchup/fetcher_test.go
+++ b/catchup/fetcher_test.go
@@ -23,7 +23,6 @@ import (
"net/url"
"strings"
"testing"
- "time"
"github.com/gorilla/mux"
"github.com/stretchr/testify/require"
@@ -288,16 +287,7 @@ func (p *testUnicastPeer) Version() string {
return p.version
}
-func (p *testUnicastPeer) IsOutgoing() bool {
- return false
-}
-
-// GetConnectionLatency returns the connection latency between the local node and this peer.
-func (p *testUnicastPeer) GetConnectionLatency() time.Duration {
- return time.Duration(0)
-}
-
-func (p *testUnicastPeer) Unicast(ctx context.Context, msg []byte, tag protocol.Tag, callback network.UnicastWebsocketMessageStateCallback) error {
+func (p *testUnicastPeer) Unicast(ctx context.Context, msg []byte, tag protocol.Tag) error {
ps := p.gn.(*httpTestPeerSource)
var dispather network.MessageHandler
for _, v := range ps.dispatchHandlers {