@@ -43,7 +43,6 @@ fn default_false() -> bool {
4343pub struct ServerConfig {
4444 pub bot_acl : BotACL ,
4545 pub labels : ServerLabels ,
46- pub distributed : ChunkConfig ,
4746}
4847
4948#[ derive( Clone , Serialize , Deserialize ) ]
@@ -78,12 +77,6 @@ pub struct SandboxConfig {
7877 pub build_log_max_lines : usize ,
7978}
8079
81- #[ derive( Clone , Serialize , Deserialize ) ]
82- #[ serde( rename_all = "kebab-case" ) ]
83- pub struct ChunkConfig {
84- pub chunk_size : i32 ,
85- }
86-
8780#[ derive( Clone , Serialize , Deserialize ) ]
8881#[ serde( rename_all = "kebab-case" ) ]
8982pub struct Config {
@@ -138,10 +131,6 @@ impl Config {
138131 & self . demo_crates
139132 }
140133
141- pub fn chunk_size ( & self ) -> i32 {
142- self . server . distributed . chunk_size
143- }
144-
145134 pub fn check ( file : & Option < String > ) -> Fallible < ( ) > {
146135 if let Some ( file) = file {
147136 Self :: check_all ( file. into ( ) )
@@ -269,7 +258,6 @@ impl Default for Config {
269258 experiment_queued : "" . into ( ) ,
270259 experiment_completed : "" . into ( ) ,
271260 } ,
272- distributed : ChunkConfig { chunk_size : 1 } ,
273261 } ,
274262 }
275263 }
@@ -300,8 +288,6 @@ mod tests {
300288 "remove = \" \" \n " ,
301289 "experiment-queued = \" \" \n " ,
302290 "experiment-completed = \" \" \n " ,
303- "[server.distributed]\n " ,
304- "chunk-size = 32\n " ,
305291 "[demo-crates]\n " ,
306292 "crates = []\n " ,
307293 "github-repos = []\n " ,
@@ -338,7 +324,5 @@ mod tests {
338324 name: "cargo" . into( ) ,
339325 sha: None ,
340326 } ) ) ) ;
341-
342- assert_eq ! ( list. chunk_size( ) , 32 ) ;
343327 }
344328}
0 commit comments