Test: remove removed endpoints from mock RPC
This commit is contained in:
parent
dbc52ae981
commit
a0eeddfae7
|
@ -370,11 +370,6 @@ func (mock *mockPinTracker) Recover(ctx context.Context, in cid.Cid, out *api.Pi
|
|||
|
||||
/* PeerMonitor methods */
|
||||
|
||||
// LogMetric runs PeerMonitor.LogMetric().
|
||||
func (mock *mockPeerMonitor) LogMetric(ctx context.Context, in *api.Metric, out *struct{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// LatestMetrics runs PeerMonitor.LatestMetrics().
|
||||
func (mock *mockPeerMonitor) LatestMetrics(ctx context.Context, in string, out *[]*api.Metric) error {
|
||||
m := &api.Metric{
|
||||
|
@ -417,10 +412,6 @@ func (mock *mockIPFSConnector) PinLs(ctx context.Context, in string, out *map[st
|
|||
return nil
|
||||
}
|
||||
|
||||
func (mock *mockIPFSConnector) ConnectSwarms(ctx context.Context, in struct{}, out *struct{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (mock *mockIPFSConnector) SwarmPeers(ctx context.Context, in struct{}, out *[]peer.ID) error {
|
||||
*out = []peer.ID{PeerID2, PeerID3}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user