mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +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 ok {
|
||||||
if score != element.Score {
|
if score != element.Score {
|
||||||
sortedSet.skiplist.remove(member, score)
|
sortedSet.skiplist.remove(member, element.Score)
|
||||||
sortedSet.skiplist.insert(member, score)
|
sortedSet.skiplist.insert(member, score)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user