clientv3, ctl3, clientv3/integration: add compact response to compact

This commit is contained in:
Anthony Romano
2016-06-27 20:51:12 -07:00
committed by Gyu-Ho Lee
parent c00e97ea49
commit 8bbccf1047
5 changed files with 21 additions and 19 deletions

View File

@@ -210,7 +210,7 @@ func ExampleKV_compact() {
compRev := resp.Header.Revision // specify compact revision of your choice
ctx, cancel = context.WithTimeout(context.Background(), requestTimeout)
err = cli.Compact(ctx, compRev)
_, err = cli.Compact(ctx, compRev)
cancel()
if err != nil {
log.Fatal(err)