Browse Source

fix(etcdbench): Check for error in etcdbench set operation

Brian Waldon 12 years ago
parent
commit
bd04905154
1 changed files with 4 additions and 1 deletions
  1. 4 1
      bench/bench.go

+ 4 - 1
bench/bench.go

@@ -13,7 +13,10 @@ func write(endpoint string, requests int, end chan int) {
 
 	for i := 0; i < requests; i++ {
 		key := strconv.Itoa(i)
-		client.Set(key, key, 0)
+		_, err := client.Set(key, key, 0)
+		if err != nil {
+			println(err.Error())
+		}
 	}
 	end <- 1
 }