Merge pull request #3547 from ethan-daocloud/patch-3

cleanup code typos in leases.go
This commit is contained in:
Michael Crosby 2019-08-16 12:52:41 -04:00 committed by GitHub
commit 666cfe11cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ import (
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
) )
// LeaseManager manages the create/delete lifecyle of leases // LeaseManager manages the create/delete lifecycle of leases
// and also returns existing leases // and also returns existing leases
type LeaseManager struct { type LeaseManager struct {
tx *bolt.Tx tx *bolt.Tx
@ -95,7 +95,7 @@ func (lm *LeaseManager) Create(ctx context.Context, opts ...leases.Opt) (leases.
return l, nil return l, nil
} }
// Delete delets the lease with the provided lease ID // Delete deletes the lease with the provided lease ID
func (lm *LeaseManager) Delete(ctx context.Context, lease leases.Lease, _ ...leases.DeleteOpt) error { func (lm *LeaseManager) Delete(ctx context.Context, lease leases.Lease, _ ...leases.DeleteOpt) error {
namespace, err := namespaces.NamespaceRequired(ctx) namespace, err := namespaces.NamespaceRequired(ctx)
if err != nil { if err != nil {