From 561fab1650ab18a3a7f35d082793774616aa3df6 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 30 Apr 2018 13:59:51 -0700 Subject: [PATCH] lease: fix "unconvert" warnings Signed-off-by: Gyuho Lee --- lease/lessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lease/lessor.go b/lease/lessor.go index e8208c0cb..db5b34cc2 100644 --- a/lease/lessor.go +++ b/lease/lessor.go @@ -628,7 +628,7 @@ func (l *Lease) expired() bool { func (l *Lease) persistTo(b backend.Backend) { key := int64ToBytes(int64(l.ID)) - lpb := leasepb.Lease{ID: int64(l.ID), TTL: int64(l.ttl)} + lpb := leasepb.Lease{ID: int64(l.ID), TTL: l.ttl} val, err := lpb.Marshal() if err != nil { panic("failed to marshal lease proto item")