Skip to content

Commit

Permalink
Replace todo with _an_ error
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jan 28, 2025
1 parent b88cd5c commit c6b3ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions talpid-wireguard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ impl WireguardMonitor {
})
.any(|routes_are_correct| async move { routes_are_correct });
if let Err(_) = tokio::time::timeout(std::time::Duration::from_secs(4), route_update).await {
todo!("fixme");
//return Err(Error::SetupRoutingError(talpid_routing::Error::RouteManagerDown)); // TODO: Wrong error. Expose "routes are not up" error
// TODO: Wrong error. Expose "routes are not up" error
return Err(CloseMsg::SetupError(Error::SetupRoutingError(talpid_routing::Error::RouteManagerDown)));
}

if should_negotiate_ephemeral_peer {
Expand Down

0 comments on commit c6b3ab6

Please sign in to comment.