Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Aug 23, 2024
1 parent 706bf39 commit f21adb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/mempool/priority_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (i *ConcurrentSkipList[C]) CloneCounts() map[C]int {
// GetScore retrieves the score associated with a specific nonce and sender.
// It returns a pointer to the score if found, or nil if not found.
// It locks the scores for reading to ensure safe access.
func (i *ConcurrentSkipList[C]) GetScore(nonce uint64, sender string) *score[C] {
func (i *ConcurrentSkipList[C]) GetScore(nonce uint64, sender string) *score[C] { //revive:disable:unexported-return
i.mutex.RLock()
defer i.mutex.RUnlock()
score, ok := i.scores[scoreKey{nonce: nonce, sender: sender}]
Expand Down

0 comments on commit f21adb3

Please sign in to comment.