Travis Staton
Travis Staton
Under the current design, resources are kept in a `TVar` pointing to a list of resources. If a thread attempts to acquire a resource and finds the list empty it...
Similar to #64 and #65 Skimming the [`find_and_lock_chunk` code](https://github.com/tstat/attic/blob/4fedffe6a1020edfcfa7bef18d21321d4983b3a7/server/src/database/mod.rs#L270-L306), it looks like the purpose of this field is essentially to mark a `nar` or `chunk` row that may soon be...
I noticed this in my own attic instance across restarts and gcs. Skimming the upload code, it looks like a [nar row is inserted](https://github.com/zhaofengli/attic/blob/4fedffe6a1020edfcfa7bef18d21321d4983b3a7/server/src/api/v1/upload_path.rs#L343-L363) and a [cleanup action is registered](https://github.com/zhaofengli/attic/blob/4fedffe6a1020edfcfa7bef18d21321d4983b3a7/server/src/api/v1/upload_path.rs#L365-L379)...
**Choose your PR title well:** Your pull request title is what's used to create release notes, so please make it descriptive of the change itself, which may be different from...