diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-06 12:29:25 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 17:59:50 +0100 |
commit | 092884739888fdf4688e9273310f587e037ac07d (patch) | |
tree | 9ae43ad3c563f68f8bb2da3dc47d56ccd2eb9cc6 /src/buildtool/execution_api/common/common_api.cpp | |
parent | e67f08133d54d1b51f00f22540917e56825e88de (diff) | |
download | justbuild-092884739888fdf4688e9273310f587e037ac07d.tar.gz |
Rename kMaxBatchTransferSize to MessageLimits::kMaxGrpcLength
Diffstat (limited to 'src/buildtool/execution_api/common/common_api.cpp')
-rw-r--r-- | src/buildtool/execution_api/common/common_api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/common_api.cpp b/src/buildtool/execution_api/common/common_api.cpp index 69cd86fb..47542bc0 100644 --- a/src/buildtool/execution_api/common/common_api.cpp +++ b/src/buildtool/execution_api/common/common_api.cpp @@ -214,7 +214,7 @@ auto UpdateContainerAndUpload( // that we never store unnecessarily more data in the container than we need // per remote transfer. try { - if (blob.data->size() > kMaxBatchTransferSize) { + if (blob.data->size() > MessageLimits::kMaxGrpcLength) { // large blobs use individual stream upload if (not uploader( std::unordered_set<ArtifactBlob>{{std::move(blob)}})) { @@ -228,7 +228,8 @@ auto UpdateContainerAndUpload( content_size += blob.data->size(); } - if (content_size + blob.data->size() > kMaxBatchTransferSize) { + if (content_size + blob.data->size() > + MessageLimits::kMaxGrpcLength) { // swap away from original container to allow move during // upload std::unordered_set<ArtifactBlob> tmp_container{}; |