Skip to content

Commit

Permalink
fix: fix ConcurrentHashSet copylocks error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Aug 16, 2022
1 parent 1094bf7 commit b06f70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concurrent_hashset.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (set *ConcurrentHashSet[T]) Equals(o any) bool {
return false
}

s := utils.GetElem(o).(ConcurrentHashSet[T])
s := o.(*ConcurrentHashSet[T])
set.mutex.RLock()
s.mutex.RLock()
defer set.mutex.RUnlock()
Expand Down

0 comments on commit b06f70a

Please sign in to comment.