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 }