Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bench fix

  • Loading branch information...
commit 3b0017f5bf2e2d15c5ba7bacf68099972633b74a 1 parent c138fcb
Simon Zimmermann authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  exp/bench/bench.go
  2. +1 −1  exp/bench/tests.go
View
2  exp/bench/bench.go
@@ -59,7 +59,7 @@ func BenchmarkMock(handle func(*redis.Client, chan bool)) time.Duration {
}
func BenchmarkRedis(handle func(*redis.Client, chan bool)) time.Duration {
- c := redis.NewClient("")
+ c := redis.NewClient("tcp:127.0.0.1:6379",13, "")
//if _, err := c.Call("FLUSHDB"); err != nil {
// fmt.Fprintln(os.Stderr, err.Error())
View
2  exp/bench/tests.go
@@ -43,7 +43,7 @@ func setPipelineHandle(c *redis.Client, ch chan bool) {
if send == *P {
for i := 0; i < *P; i++ {
- p.Poll()
+ p.Read()
}
send = 0
}
Please sign in to comment.
Something went wrong with that request. Please try again.