libstore: migrate caFile, netrcFile, and downloadSpeed to FileTransferSettings

The `caFile`, `netrcFile`, and `downloadSpeed` settings are only used by
the file transfer subsystem but lived in the global `Settings` class.
This moves them to `FileTransferSettings` where they belong.

Co-authored-by: Amaan Qureshi <git@amaanq.com>
This commit is contained in:
eveeifyeve
2026-02-11 12:28:49 -05:00
committed by Amaan Qureshi
parent 46eabe34c2
commit 04d13a96e3
10 changed files with 162 additions and 124 deletions

View File

@@ -80,13 +80,13 @@ void HttpsBinaryCacheStoreTest::SetUp()
std::this_thread::sleep_for(std::chrono::milliseconds(50));
/* FIXME: Don't use global settings. Tests are not run concurrently, so this is fine for now. */
oldCaCert = settings.caFile;
settings.caFile = caCert.string();
oldCaCert = fileTransferSettings.caFile;
fileTransferSettings.caFile = caCert.string();
}
void HttpsBinaryCacheStoreTest::TearDown()
{
settings.caFile = oldCaCert;
fileTransferSettings.caFile = oldCaCert;
serverPid.kill();
delTmpDir.reset();
}