Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On close, drain the deletables channel (unblocking an waiting goroutines) and close deletables. Like Gets and Sets against a now-closed promotables, this means any subsequent to Deletes from deletables will panic. I'm still not sure that this is ccache's responsibility. If a client closes a DB connection, we'd expect subsequent operations against the now-closed connection to fail. My main problems with defer'ing a recover are: 1 - the performance overhead on every single get / set / delete 2 - not communicating with the caller that the requested operatin is no longer valid.
- Loading branch information