diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26 21:19:34 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26 21:19:34 +0200 |
commit | ed78582847d3932763ad9b7b239f843306fa6fe9 (patch) | |
tree | e18903eae4c59ab24d59cea8c1e09ef8248563b4 /src/libstore | |
parent | 44e86304b611a955f4e934fc160f3f4a0a2b1c92 (diff) |
sinkToSource(): Start the coroutine lazily
In particular this causes copyStorePath() from HttpBinaryCacheStore to
only start a download if needed. E.g. if the destination LocalStore
goes to sleep waiting for the path lock and another process creates
the path, then LocalStore::addToStore() will never read from the
source so we don't have to do the download.
Diffstat (limited to 'src/libstore')
0 files changed, 0 insertions, 0 deletions