Skip to content

Commit

Permalink
Merge pull request #3 from maxlerebourg/2-issue-with-redis-password
Browse files Browse the repository at this point in the history
🐛 Fix a bug where connexion to redis hang (for loop)
  • Loading branch information
mathieuHa authored Mar 5, 2023
2 parents a90e4c4 + f53dde8 commit 7bb3d02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# simpleredis
Minimal go redis with only `get`, `set` and `delete` operation.
With **NO** extern dependencies.
It supports password authentication with redis.
With **NO** external dependencies.

## Example
```go
Expand All @@ -26,4 +27,5 @@ if err != nil {
```

## Author
Max Lerebourg @ [Primadviz.com](https://primadviz.com)
Max Lerebourg @ [Primadviz.com](https://primadviz.com)
Mathieu Hanotaux
3 changes: 2 additions & 1 deletion simpleredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ func askRedis(sr *SimpleRedis, cmd redisCmd, channel chan redisCmd) {
channel <- redisCmd{Error: fmt.Errorf(RedisNoAuth)}
return
}
break
}
// breaks out of for
break
}
}

Expand Down

0 comments on commit 7bb3d02

Please sign in to comment.