@@ -3,7 +3,7 @@ use std::collections::{BTreeMap, HashMap};
33
44use anyhow:: Context as _;
55use secrecy:: { ExposeSecret as _, Secret } ;
6- use zksync_concurrency:: { limiter , net, time} ;
6+ use zksync_concurrency:: { net, time} ;
77use zksync_config:: {
88 configs,
99 configs:: consensus:: { ConsensusConfig , ConsensusSecrets , Host , NodePublicKey } ,
@@ -152,11 +152,6 @@ pub(super) fn executor(
152152
153153 let mut rpc = executor:: RpcConfig :: default ( ) ;
154154 rpc. get_block_rate = cfg. rpc ( ) . get_block_rate ( ) ;
155- // Disable batch syncing, because it is not implemented.
156- rpc. get_batch_rate = limiter:: Rate {
157- burst : 0 ,
158- refresh : time:: Duration :: ZERO ,
159- } ;
160155
161156 let debug_page = cfg. debug_page_addr . map ( |addr| network:: debug_page:: Config {
162157 addr,
@@ -169,6 +164,7 @@ pub(super) fn executor(
169164 server_addr : cfg. server_addr ,
170165 public_addr : net:: Host ( cfg. public_addr . 0 . clone ( ) ) ,
171166 max_payload_size : cfg. max_payload_size ,
167+ view_timeout : time:: Duration :: milliseconds ( cfg. view_timeout as i64 ) ,
172168 node_key : node_key ( secrets)
173169 . context ( "node_key" ) ?
174170 . context ( "missing node_key" ) ?,
0 commit comments