Skip to content

Commit 56590db

Browse files
fix formatting
1 parent 36bffe0 commit 56590db

2 files changed

Lines changed: 4 additions & 41 deletions

File tree

deployment-examples/docker-compose/multi-worker-with-grace-period.json5

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -89,46 +89,6 @@
8989
},
9090
},
9191
},
92-
{
93-
local: {
94-
name: "worker-2",
95-
worker_api_endpoint: {
96-
uri: "grpc://127.0.0.1:50062",
97-
},
98-
cas_fast_slow_store: "CAS",
99-
upload_action_result: {
100-
ac_store: "AC",
101-
},
102-
work_directory: "/tmp/nativelink-multi-test/worker2/work",
103-
platform_properties: {
104-
cpu_count: {
105-
values: [
106-
"1",
107-
],
108-
},
109-
},
110-
},
111-
},
112-
{
113-
local: {
114-
name: "worker-3",
115-
worker_api_endpoint: {
116-
uri: "grpc://127.0.0.1:50063",
117-
},
118-
cas_fast_slow_store: "CAS",
119-
upload_action_result: {
120-
ac_store: "AC",
121-
},
122-
work_directory: "/tmp/nativelink-multi-test/worker3/work",
123-
platform_properties: {
124-
cpu_count: {
125-
values: [
126-
"1",
127-
],
128-
},
129-
},
130-
},
131-
},
13292
],
13393
servers: [
13494
{

nativelink-config/src/stores.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,10 @@ pub struct EvictionPolicy {
856856
/// cache is full. This prevents premature eviction of items needed by
857857
/// in-flight actions in multi-worker deployments.
858858
/// Default: 1800 (30 minutes). Zero means no grace period.
859-
#[serde(default = "default_eviction_grace_period", deserialize_with = "convert_duration_with_shellexpand")]
859+
#[serde(
860+
default = "default_eviction_grace_period",
861+
deserialize_with = "convert_duration_with_shellexpand"
862+
)]
860863
pub eviction_grace_period_seconds: u32,
861864
}
862865

0 commit comments

Comments
 (0)