Skip to content

Commit 9069798

Browse files
Skoryfacebook-github-bot
authored andcommitted
Support remote CASd using UDS
Summary: Making it possible to configure the RE client using the remote CASd over the UDS. Differential Revision: D62108434 fbshipit-source-id: 05bb6e65ffbd09deaf382267cf30e9ea02d9201a
1 parent 37ebc09 commit 9069798

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/buck2_execute/src/re/client.rs

+4
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ impl RemoteExecutionClientImpl {
480480
// want to tell the RE client to rely on an external
481481
// CAS daemon to manage the cache.
482482
if let Some(shared_cache) = &static_metadata.cas_shared_cache {
483+
use remote_execution::RemoteCASdAddress;
483484
use remote_execution::RemoteCacheConfig;
484485
use remote_execution::RemoteCacheManagerMode;
485486
use remote_execution::RemoteFetchPolicy;
@@ -520,6 +521,9 @@ impl RemoteExecutionClientImpl {
520521
port: static_metadata.cas_shared_cache_port,
521522
small_files: small_files_policy,
522523
large_files: large_files_policy,
524+
address: RemoteCASdAddress::tcp_port(
525+
static_metadata.cas_shared_cache_port.unwrap_or(23333),
526+
),
523527
..Default::default()
524528
};
525529
if let Some(tls) = static_metadata.cas_shared_cache_tls {

0 commit comments

Comments
 (0)