@@ -121,8 +121,8 @@ pub struct P2pConfig {
121121 /// Various limits related to the protocol; these should only be overridden in tests.
122122 pub protocol_config : ProtocolConfig ,
123123
124- /// Various timeouts used by the backend.
125- pub backend_timeouts : BackendTimeoutsConfig ,
124+ /// Various settings specific to the backend.
125+ pub backend_config : BackendConfig ,
126126
127127 /// If set, this text will be sent to banned peers as part of the DisconnectionReason.
128128 pub custom_disconnection_reason_for_banning : Option < String > ,
@@ -134,13 +134,13 @@ impl P2pConfig {
134134 /// It is calculated as the max clock diff setting plus handshake timeout to allow for
135135 /// imprecisions caused by the network latency.
136136 pub fn effective_max_clock_diff ( & self ) -> Duration {
137- * self . max_clock_diff + * self . backend_timeouts . peer_handshake_timeout
137+ * self . max_clock_diff + * self . backend_config . peer_handshake_timeout
138138 }
139139}
140140
141- /// Part of P2pConfig containing various timeouts used by the backend.
141+ /// Part of P2pConfig containing various settings specific to the backend.
142142#[ derive( Default , Debug , Clone ) ]
143- pub struct BackendTimeoutsConfig {
143+ pub struct BackendConfig {
144144 /// The outbound connection timeout value.
145145 pub outbound_connection_timeout : OutboundConnectionTimeout ,
146146
0 commit comments