File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,6 @@ type Dispatcher interface {
176176// Peer is the interface that defines the methods needed by the query package
177177// to be able to make requests and receive responses from a network peer.
178178type Peer interface {
179- // QueueMessageWithEncoding adds the passed bitcoin message to the peer
180- // send queue.
181- QueueMessageWithEncoding (msg wire.Message , doneChan chan <- struct {},
182- encoding wire.MessageEncoding )
183-
184179 // SubscribeRecvMsg adds a OnRead subscription to the peer. All bitcoin
185180 // messages received from this peer will be sent on the returned
186181 // channel. A closure is also returned, that should be called to cancel
Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ type mockPeer struct {
4848
4949var _ Peer = (* mockPeer )(nil )
5050
51- func (m * mockPeer ) QueueMessageWithEncoding (msg wire.Message ,
52- doneChan chan <- struct {}, encoding wire.MessageEncoding ) {
53-
54- m .requests <- msg
55- }
56-
5751func (m * mockPeer ) SubscribeRecvMsg () (<- chan wire.Message , func ()) {
5852 msgChan := make (chan wire.Message )
5953 m .subscriptions <- msgChan
You can’t perform that action at this time.
0 commit comments