@@ -43,7 +43,6 @@ fn default_false() -> bool {
43
43
pub struct ServerConfig {
44
44
pub bot_acl : BotACL ,
45
45
pub labels : ServerLabels ,
46
- pub distributed : ChunkConfig ,
47
46
}
48
47
49
48
#[ derive( Clone , Serialize , Deserialize ) ]
@@ -78,12 +77,6 @@ pub struct SandboxConfig {
78
77
pub build_log_max_lines : usize ,
79
78
}
80
79
81
- #[ derive( Clone , Serialize , Deserialize ) ]
82
- #[ serde( rename_all = "kebab-case" ) ]
83
- pub struct ChunkConfig {
84
- pub chunk_size : i32 ,
85
- }
86
-
87
80
#[ derive( Clone , Serialize , Deserialize ) ]
88
81
#[ serde( rename_all = "kebab-case" ) ]
89
82
pub struct Config {
@@ -138,10 +131,6 @@ impl Config {
138
131
& self . demo_crates
139
132
}
140
133
141
- pub fn chunk_size ( & self ) -> i32 {
142
- self . server . distributed . chunk_size
143
- }
144
-
145
134
pub fn check ( file : & Option < String > ) -> Fallible < ( ) > {
146
135
if let Some ( file) = file {
147
136
Self :: check_all ( file. into ( ) )
@@ -269,7 +258,6 @@ impl Default for Config {
269
258
experiment_queued : "" . into ( ) ,
270
259
experiment_completed : "" . into ( ) ,
271
260
} ,
272
- distributed : ChunkConfig { chunk_size : 1 } ,
273
261
} ,
274
262
}
275
263
}
@@ -300,8 +288,6 @@ mod tests {
300
288
"remove = \" \" \n " ,
301
289
"experiment-queued = \" \" \n " ,
302
290
"experiment-completed = \" \" \n " ,
303
- "[server.distributed]\n " ,
304
- "chunk-size = 32\n " ,
305
291
"[demo-crates]\n " ,
306
292
"crates = []\n " ,
307
293
"github-repos = []\n " ,
@@ -338,7 +324,5 @@ mod tests {
338
324
name: "cargo" . into( ) ,
339
325
sha: None ,
340
326
} ) ) ) ;
341
-
342
- assert_eq ! ( list. chunk_size( ) , 32 ) ;
343
327
}
344
328
}
0 commit comments