diff --git a/Networking/Sources/Networking/Peer.swift b/Networking/Sources/Networking/Peer.swift index 6d05b16d..91c6b85c 100644 --- a/Networking/Sources/Networking/Peer.swift +++ b/Networking/Sources/Networking/Peer.swift @@ -279,7 +279,7 @@ final class PeerImpl: Sendable { func reconnect(to address: NetAddr, role: PeerRole) throws { let state = reconnectStates.read { reconnectStates in - reconnectStates[address] ?? ReconnectState(attempt: 0, delay: 1) + reconnectStates[address] ?? .init() } if state.attempt < reconnectMaxRetryAttempts { reconnectStates.write { reconnectStates in