mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-23 08:49:26 +08:00
bugfix
This commit is contained in:
@@ -106,7 +106,7 @@ func (dict *SimpleDict) RandomDistinctKeys(limit int) []string {
|
|||||||
result := make([]string, size)
|
result := make([]string, size)
|
||||||
i := 0
|
i := 0
|
||||||
for k := range dict.m {
|
for k := range dict.m {
|
||||||
if i == limit {
|
if i == size {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
result[i] = k
|
result[i] = k
|
||||||
|
Reference in New Issue
Block a user