core: remove Option for connection timeout

This commit is contained in:
sleepycatcoding 2023-07-17 19:22:01 +03:00 committed by Nathan Adams
parent 4501bc19c4
commit ac1badc64f
2 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ pub trait NavigatorBackend {
&mut self,
host: String,
port: u16,
timeout: Option<Duration>,
timeout: Duration,
handle: SocketHandle,
receiver: Receiver<Vec<u8>>,
sender: Sender<SocketAction>,
@ -407,7 +407,7 @@ impl NavigatorBackend for NullNavigatorBackend {
&mut self,
_host: String,
_port: u16,
_timeout: Option<Duration>,
_timeout: Duration,
handle: SocketHandle,
_receiver: Receiver<Vec<u8>>,
sender: Sender<SocketAction>,

View File

@ -83,7 +83,7 @@ impl<'gc> Sockets<'gc> {
backend.connect_socket(
host,
port,
Some(Duration::from_millis(target.timeout().into())),
Duration::from_millis(target.timeout().into()),
handle,
receiver,
self.sender.clone(),