diff --git a/pkg/willow/willow.go b/pkg/willow/willow.go index 344c5e5..49c11a1 100644 --- a/pkg/willow/willow.go +++ b/pkg/willow/willow.go @@ -110,6 +110,7 @@ func (w *Willow) washer(now time.Time) { continue } - go file.Flush(buf.FlusOpts{Type: "exp", FollowUp: func() { w.Delete(path) }}) + go file.Flush(buf.FlusOpts{Type: "exp"}) + delete(w.memory, path) } }