mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
share the executor between multiple copy threads.
This commit is contained in:
parent
591e75cd01
commit
854c0860f4
1 changed files with 2 additions and 2 deletions
|
@ -281,8 +281,8 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
|
||||||
|
|
||||||
auto maxThreads = std::thread::hardware_concurrency();
|
auto maxThreads = std::thread::hardware_concurrency();
|
||||||
|
|
||||||
auto executor =
|
static std::shared_ptr<Aws::Utils::Threading::PooledThreadExecutor>
|
||||||
std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(maxThreads);
|
executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(maxThreads);
|
||||||
|
|
||||||
TransferManagerConfiguration transferConfig(executor.get());
|
TransferManagerConfiguration transferConfig(executor.get());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue