Skip to content

Commit bc4260d

Browse files
committed
ignore this return error
1 parent 6a4b9e1 commit bc4260d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

store/etcdv3/meta/etcd.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,13 @@ func (e *ETCD) BindStatus(ctx context.Context, entityKey, statusKey, statusValue
301301
return err
302302
}
303303

304-
func (e *ETCD) revokeLease(ctx context.Context, leaseID clientv3.LeaseID) error {
304+
func (e *ETCD) revokeLease(ctx context.Context, leaseID clientv3.LeaseID) {
305305
if leaseID == 0 {
306-
return nil
306+
return
307+
}
308+
if _, err := e.cliv3.Revoke(ctx, leaseID); err != nil {
309+
log.Errorf(ctx, "[etcd revoke lease error] %v", err)
307310
}
308-
_, err := e.cliv3.Revoke(ctx, leaseID)
309-
return err
310311
}
311312

312313
// Grant creates a new lease.

0 commit comments

Comments
 (0)