From efac477059cdc60fca68bbb6b58e440ed35fdb74 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Fri, 21 Aug 2020 09:35:53 +0100 Subject: [PATCH] store: remove write TTL & expiry options (#1960) --- file.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/file.go b/file.go index d663329..5a96315 100644 --- a/file.go +++ b/file.go @@ -330,13 +330,6 @@ func (m *fileStore) Write(r *store.Record, opts ...store.WriteOption) error { newRecord.Metadata = make(map[string]interface{}) newRecord.Expiry = r.Expiry - if !writeOpts.Expiry.IsZero() { - newRecord.Expiry = time.Until(writeOpts.Expiry) - } - if writeOpts.TTL != 0 { - newRecord.Expiry = writeOpts.TTL - } - for k, v := range r.Metadata { newRecord.Metadata[k] = v }