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 }