joncrlsn / dque

dque is a fast, embedded, durable queue for Go
MIT License
767 stars 46 forks source link

Delete consumed and complete segments on load + Close segment file handles #41

Closed nikolaydimitrov closed 1 month ago

nikolaydimitrov commented 1 month ago

Hi @joncrlsn This is the PR that should also cleanup the consumed and complete segments on load. I have added file handle close for the segments on dque.Close(). Plus, I accidentally committed an empty file called "queue" in the previous PR. Cheers