diff --git a/protocol/rpcprovider/rewardserver/reward_server.go b/protocol/rpcprovider/rewardserver/reward_server.go index 27ddb2b7f6..292b4f4649 100644 --- a/protocol/rpcprovider/rewardserver/reward_server.go +++ b/protocol/rpcprovider/rewardserver/reward_server.go @@ -85,8 +85,7 @@ type PaymentConfiguration struct { } // used to disable provider rewards claiming -type DisabledRewardServer struct { -} +type DisabledRewardServer struct{} func (rws *DisabledRewardServer) SendNewProof(ctx context.Context, proof *pairingtypes.RelaySession, epoch uint64, consumerAddr string, apiInterface string) (existingCU uint64, updatedWithProof bool) { return 0, true diff --git a/protocol/statetracker/updaters/pairing_updater_test.go b/protocol/statetracker/updaters/pairing_updater_test.go index 148cda904a..fb4f574512 100644 --- a/protocol/statetracker/updaters/pairing_updater_test.go +++ b/protocol/statetracker/updaters/pairing_updater_test.go @@ -31,6 +31,7 @@ func (m matcher) Matches(arg interface{}) bool { } return true } + func (m matcher) String() string { return "" } @@ -189,7 +190,6 @@ func TestPairingUpdater(t *testing.T) { } consumerSessionManager.EXPECT().UpdateAllProviders(gomock.Any(), pairingMatcher).Times(1).Return(nil) err := pu.RegisterPairing(context.Background(), consumerSessionManager, staticProviders) - if err != nil { t.Errorf("Unexpected error: %v", err) } @@ -200,7 +200,5 @@ func TestPairingUpdater(t *testing.T) { consumerSessionManager.EXPECT().UpdateAllProviders(gomock.Any(), pairingMatcher).Times(1).Return(nil) pu.Update(20) - }) - }