Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlavanet committed Aug 18, 2024
1 parent ec0b09b commit 11d8d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions protocol/rpcprovider/rewardserver/reward_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions protocol/statetracker/updaters/pairing_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (m matcher) Matches(arg interface{}) bool {
}
return true
}

func (m matcher) String() string {
return ""
}
Expand Down Expand Up @@ -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)
}
Expand All @@ -200,7 +200,5 @@ func TestPairingUpdater(t *testing.T) {

consumerSessionManager.EXPECT().UpdateAllProviders(gomock.Any(), pairingMatcher).Times(1).Return(nil)
pu.Update(20)

})

}

0 comments on commit 11d8d92

Please sign in to comment.