Skip to content

Commit f53dde8

Browse files
committed
🐛 Fix a bug where connexion to redis hang (for loop)
1 parent a90e4c4 commit f53dde8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# simpleredis
22
Minimal go redis with only `get`, `set` and `delete` operation.
3-
With **NO** extern dependencies.
3+
It supports password authentication with redis.
4+
With **NO** external dependencies.
45

56
## Example
67
```go
@@ -26,4 +27,5 @@ if err != nil {
2627
```
2728

2829
## Author
29-
Max Lerebourg @ [Primadviz.com](https://primadviz.com)
30+
Max Lerebourg @ [Primadviz.com](https://primadviz.com)
31+
Mathieu Hanotaux

simpleredis.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ func askRedis(sr *SimpleRedis, cmd redisCmd, channel chan redisCmd) {
8181
channel <- redisCmd{Error: fmt.Errorf(RedisNoAuth)}
8282
return
8383
}
84-
break
8584
}
85+
// breaks out of for
86+
break
8687
}
8788
}
8889

0 commit comments

Comments
 (0)