Skip to content

Commit

Permalink
No pointer for syncutils.RWMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Sep 20, 2023
1 parent c237d8c commit cede9c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/storage/database/lockedkvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import (
type lockedKVStore struct {
*openableKVStore

instanceMutex *syncutils.RWMutex
instanceMutex syncutils.RWMutex
}

func newLockedKVStore(storeInstance kvstore.KVStore) *lockedKVStore {
return &lockedKVStore{
openableKVStore: newOpenableKVStore(storeInstance),
instanceMutex: new(syncutils.RWMutex),
}
}

Expand Down

0 comments on commit cede9c9

Please sign in to comment.