about summary refs log tree commit diff
path: root/release-common.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-09-26T19·19+0200
committerEelco Dolstra <edolstra@gmail.com>2018-09-26T19·19+0200
commited78582847d3932763ad9b7b239f843306fa6fe9 (patch)
treee18903eae4c59ab24d59cea8c1e09ef8248563b4 /release-common.nix
parent44e86304b611a955f4e934fc160f3f4a0a2b1c92 (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 'release-common.nix')
0 files changed, 0 insertions, 0 deletions