1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Use a lock-free connection pool

This commit is contained in:
Dimitrij Denissenko
2015-01-31 13:20:37 +00:00
parent c3ab344f84
commit 9f9822edd2
6 changed files with 118 additions and 110 deletions

View File

@ -150,7 +150,9 @@ var _ = Describe("Command", func() {
wg.Add(n)
for i := 0; i < n; i++ {
go func() {
defer GinkgoRecover()
defer wg.Done()
err := client.Incr(key).Err()
Expect(err).NotTo(HaveOccurred())
}()