Browse Source

更新 'redis.go'

golang 3 years ago
parent
commit
e1cd22ae91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      redis.go

+ 1 - 1
redis.go

@@ -49,7 +49,7 @@ func (i *redisIterator) Key() string {
 }
 
 func (i *redisIterator) Value() []byte {
-	cmd := i.client.Get(i.Key())
+	cmd := i.client.Get(i.key)
 	if cmd.Err() == nil {
 		return []byte(cmd.Val())
 	} else {