mirror of https://github.com/ledisdb/ledisdb.git
fix error information
This commit is contained in:
parent
55acad2fcb
commit
85d0eceeaf
|
@ -27,7 +27,6 @@ func main() {
|
||||||
cfg.MaxIdleConns = 1
|
cfg.MaxIdleConns = 1
|
||||||
|
|
||||||
c := ledis.NewClient(cfg)
|
c := ledis.NewClient(cfg)
|
||||||
|
|
||||||
sendSelect(c, *dbn)
|
sendSelect(c, *dbn)
|
||||||
|
|
||||||
SetCompletionHandler(completionHandler)
|
SetCompletionHandler(completionHandler)
|
||||||
|
@ -155,7 +154,7 @@ func sendSelect(client *ledis.Client, index int) {
|
||||||
}
|
}
|
||||||
_, err := client.Do("select", index)
|
_, err := client.Do("select", index)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("index out of range, should less than 16")
|
fmt.Printf("%s\n", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue