clientv3/namespace: fix incorrect watching prefix-end

using "abc" will watch the wrong range when WithPrefix() specified.
This commit is contained in:
darasion
2017-04-15 22:31:50 +08:00
parent e2d0db95eb
commit 0e7fd4a37c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
// unprefixedKV := cli.KV
// cli.KV = namespace.NewKV(cli.KV, "my-prefix/")
// cli.Watcher = namespace.NewWatcher(cli.Watcher, "my-prefix/")
// cli.Leases = namespace.NewLease(cli.Lease, "my-prefix/")
// cli.Lease = namespace.NewLease(cli.Lease, "my-prefix/")
//
// Now calls using 'cli' will namespace / prefix all keys with "my-prefix/":
//