Skip to content

Commit

Permalink
Support remote CASd using UDS
Browse files Browse the repository at this point in the history
Summary: Making it possible to configure the RE client using the remote CASd over the UDS.

Differential Revision: D62108434

fbshipit-source-id: 05bb6e65ffbd09deaf382267cf30e9ea02d9201a
  • Loading branch information
Skory authored and facebook-github-bot committed Sep 6, 2024
1 parent 37ebc09 commit 9069798
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/buck2_execute/src/re/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ impl RemoteExecutionClientImpl {
// want to tell the RE client to rely on an external
// CAS daemon to manage the cache.
if let Some(shared_cache) = &static_metadata.cas_shared_cache {
use remote_execution::RemoteCASdAddress;
use remote_execution::RemoteCacheConfig;
use remote_execution::RemoteCacheManagerMode;
use remote_execution::RemoteFetchPolicy;
Expand Down Expand Up @@ -520,6 +521,9 @@ impl RemoteExecutionClientImpl {
port: static_metadata.cas_shared_cache_port,
small_files: small_files_policy,
large_files: large_files_policy,
address: RemoteCASdAddress::tcp_port(
static_metadata.cas_shared_cache_port.unwrap_or(23333),
),
..Default::default()
};
if let Some(tls) = static_metadata.cas_shared_cache_tls {
Expand Down

0 comments on commit 9069798

Please sign in to comment.