diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-19 12:44:47 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | b2dff03c841f159b474f445eb558a4ee153b1741 (patch) | |
tree | 2892207a7f7a359769706a107b12faf809d9f180 /src/buildtool/storage/storage.hpp | |
parent | 57388e7624c71762e6aac30f16809c467f96ca58 (diff) | |
download | justbuild-b2dff03c841f159b474f445eb558a4ee153b1741.tar.gz |
Pass HashFunction from StorageConfig to Storage
Diffstat (limited to 'src/buildtool/storage/storage.hpp')
-rw-r--r-- | src/buildtool/storage/storage.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/storage/storage.hpp b/src/buildtool/storage/storage.hpp index d4b070e3..2a848925 100644 --- a/src/buildtool/storage/storage.hpp +++ b/src/buildtool/storage/storage.hpp @@ -53,6 +53,10 @@ class LocalStorage final { return LocalStorage<kDoGlobalUplink>{gen_config}; } + [[nodiscard]] auto GetHashFunction() const noexcept -> HashFunction { + return cas_->GetHashFunction(); + } + /// \brief Get the CAS instance. [[nodiscard]] auto CAS() const noexcept -> CAS_t const& { return *cas_; } |