diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-12 09:58:46 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | 53893aa9c7109ab157afecc4f073a27b32d372b4 (patch) | |
tree | 30bd6b65003703bb01b50988dfd16cbe216c9ecd /src/buildtool/serve_api/serve_service/configuration.hpp | |
parent | dba28855e291dcb587cf1493446cae79f2528223 (diff) | |
download | justbuild-53893aa9c7109ab157afecc4f073a27b32d372b4.tar.gz |
Pass HashFunction::Type to ConfigurationService
...to get the protocol type.
Diffstat (limited to 'src/buildtool/serve_api/serve_service/configuration.hpp')
-rw-r--r-- | src/buildtool/serve_api/serve_service/configuration.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/serve_service/configuration.hpp b/src/buildtool/serve_api/serve_service/configuration.hpp index b374148a..90dceab2 100644 --- a/src/buildtool/serve_api/serve_service/configuration.hpp +++ b/src/buildtool/serve_api/serve_service/configuration.hpp @@ -17,6 +17,7 @@ #include "gsl/gsl" #include "justbuild/just_serve/just_serve.grpc.pb.h" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/remote/config.hpp" // This service can be used by the client to double-check the server @@ -25,9 +26,10 @@ class ConfigurationService final : public justbuild::just_serve::Configuration::Service { public: explicit ConfigurationService( + HashFunction::Type hash_type, gsl::not_null<RemoteExecutionConfig const*> const& remote_config) noexcept - : remote_config_{*remote_config} {}; + : hash_type_{hash_type}, remote_config_{*remote_config} {}; // Returns the address of the associated remote endpoint, if set, // or an empty string signaling that the serve endpoint acts also @@ -51,6 +53,7 @@ class ConfigurationService final -> ::grpc::Status override; private: + HashFunction::Type hash_type_; RemoteExecutionConfig const& remote_config_; }; |