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