summaryrefslogtreecommitdiff
path: root/src/buildtool/common/remote/remote_common.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-11 17:34:45 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-12 14:36:11 +0100
commit46eb737b2c664acb8b2732ed00cfccda8079462c (patch)
tree0bf7f49fc0bf81d28bc164d2a744f3d898c9c256 /src/buildtool/common/remote/remote_common.hpp
parent540a789e05b2834e5e4453101e7dcae8c513103b (diff)
downloadjustbuild-46eb737b2c664acb8b2732ed00cfccda8079462c.tar.gz
Fix formatting of blob used to shard target cache
The ToJson method of RemoteAddress was wrongly creating a list instead of a simple string, thus a wrongly formatted backend description was being used to shard the target cache. This however does not affect the correctness of the build. Changelog also updated accordingly.
Diffstat (limited to 'src/buildtool/common/remote/remote_common.hpp')
-rw-r--r--src/buildtool/common/remote/remote_common.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/common/remote/remote_common.hpp b/src/buildtool/common/remote/remote_common.hpp
index ddbd16fb..be440052 100644
--- a/src/buildtool/common/remote/remote_common.hpp
+++ b/src/buildtool/common/remote/remote_common.hpp
@@ -28,8 +28,8 @@ struct ServerAddress {
Port port{};
[[nodiscard]] auto ToJson() const noexcept -> nlohmann::json {
- return nlohmann::json{
- fmt::format("{}:{}", host, static_cast<std::uint16_t>(port))};
+ return nlohmann::json(
+ fmt::format("{}:{}", host, static_cast<std::uint16_t>(port)));
}
};