Prevent QUIC logs when quic is disabled (#5071)

* Prevent logs and dialing quic multiaddrs when not supported

* Merge latest unstable
This commit is contained in:
Age Manning
2024-01-31 18:11:49 +00:00
committed by GitHub
parent 7582da7855
commit f02189c86a
4 changed files with 18 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ pub struct Config {
pub discovery_enabled: bool,
/// Whether metrics are enabled.
pub metrics_enabled: bool,
/// Whether quic is enabled.
pub quic_enabled: bool,
/// Target number of peers to connect to.
pub target_peer_count: usize,
@@ -37,6 +39,7 @@ impl Default for Config {
Config {
discovery_enabled: true,
metrics_enabled: false,
quic_enabled: true,
target_peer_count: DEFAULT_TARGET_PEERS,
status_interval: DEFAULT_STATUS_INTERVAL,
ping_interval_inbound: DEFAULT_PING_INTERVAL_INBOUND,