From c8394c2ffc3688356cf985d46e8ce56d72050f6a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 17 Jul 2024 16:14:12 +0200 Subject: Remove the RetryConfig singleton ...and replace it with instances created early via a builder pattern. --- test/utils/remote_execution/bazel_action_creator.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/utils/remote_execution/bazel_action_creator.hpp') diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp index 4a7be08b..d915cda1 100644 --- a/test/utils/remote_execution/bazel_action_creator.hpp +++ b/test/utils/remote_execution/bazel_action_creator.hpp @@ -93,10 +93,12 @@ return nullptr; } + RetryConfig retry_config{}; // default retry config + BazelCasClient cas_client(remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, - &RetryConfig::Instance()); + &retry_config); std::vector> blob_ptrs; blob_ptrs.reserve(blobs.size()); -- cgit v1.2.3