*: rename Lease Create to Grant

Creating a lease through the client API interface union looked like
"c.Create(...)"-- the method name wasn't very descriptive.
This commit is contained in:
Anthony Romano
2016-04-07 10:27:36 -07:00
parent ee4ff1e448
commit dc17eaace7
25 changed files with 150 additions and 151 deletions

View File

@ -40,7 +40,7 @@ func TestKVPut(t *testing.T) {
kv := clientv3.NewKV(clus.RandClient())
ctx := context.TODO()
resp, err := lapi.Create(context.Background(), 10)
resp, err := lapi.Grant(context.Background(), 10)
if err != nil {
t.Fatalf("failed to create lease %v", err)
}