mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
Fix:sortedset Add()有bug #26
This commit is contained in:
@@ -27,7 +27,7 @@ func (sortedSet *SortedSet) Add(member string, score float64) bool {
|
||||
}
|
||||
if ok {
|
||||
if score != element.Score {
|
||||
sortedSet.skiplist.remove(member, score)
|
||||
sortedSet.skiplist.remove(member, element.Score)
|
||||
sortedSet.skiplist.insert(member, score)
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user