From 85f3ae19b2eba3663e70d11e6b7f3e7321f0672e Mon Sep 17 00:00:00 2001 From: zenghur Date: Fri, 17 Apr 2020 17:25:11 +0800 Subject: [PATCH] fxi: ttl --- freesia.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freesia.go b/freesia.go index eb2483d..5187526 100644 --- a/freesia.go +++ b/freesia.go @@ -144,6 +144,7 @@ func (f *Freesia) GetWithTTL(e *entry.Entry) error { if err = e.Decode(b); ok && err != nil { return err } + e.SetSource(entry.SourceLocal) return nil default: return err @@ -162,6 +163,7 @@ func (f *Freesia) GetWithTTL(e *entry.Entry) error { if err != nil { return redis.Nil } + e.SetSource(entry.SourceCenter) default: return err }