mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
In httpChunkStore, calls to Get/Has and friends put a request object with a 'return channel' onto a queue channel, and then block on the return channel. The queue channel was buffered, which made it impossible to cause Get, Has et al to terminate reliably when the store was closed. This patch removes the buffering on the channel so we can deterministically bail from Get/Has et al when closing the store. I don't think we were actually seeing any benefit from the buffer on the queue channels, because everywhere we write to one of them we immediately block on another channel, waiting for the result of the request. Fixes #3566