Skip to content

Commit 67dbc86

Browse files
atharrva01adecaro
authored andcommitted
fix(selector): fix lint warnings in notifier cache changes
Signed-off-by: Atharva Borade <atharvaborade568@gmail.com> Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
1 parent 1467f2f commit 67dbc86

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

token/services/selector/sherdlock/fetcher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ func NewCachedFetcher(tokenDB TokenDB, notifier dbdriver.TokenNotifier, cacheSiz
229229
func (f *cachedFetcher) onTokenChange(op dbdriver.Operation, ref dbdriver.TokenRecordReference) {
230230
if ref.WalletID == "" || ref.Type == "" {
231231
f.dirty.Store(1)
232+
232233
return
233234
}
234235
key := tokenKey(ref.WalletID, ref.Type)

token/services/selector/sherdlock/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func BenchmarkSelectorWithConcurrentWrites(b *testing.B) {
208208

209209
b.ResetTimer()
210210
b.RunParallel(func(pb *testing.PB) {
211-
txID := transaction.ID(fmt.Sprintf("bench-tx-%d", insertIdx.Load()))
211+
txID := fmt.Sprintf("bench-tx-%d", insertIdx.Load())
212212
sel, err := replica.NewSelector(txID)
213213
require.NoError(b, err)
214214
defer func() { _ = replica.Close(txID) }()

0 commit comments

Comments
 (0)