core: remove Option for connection timeout
This commit is contained in:
parent
4501bc19c4
commit
ac1badc64f
|
@ -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>,
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue