diff --git a/src/util.rs b/src/util.rs index bded3e255f335cc5cbc69e240212ba8a54ba5afc..bf0721168d5332839aef725e418c122bab801297 100644 --- a/src/util.rs +++ b/src/util.rs @@ -153,6 +153,7 @@ pub fn append_internet_to_packet_route( if let Some((rc, rs)) = first_future { if rc == callsign && rs == ssid { // we can just do the normal thing + // since we're replacing the existing future node, this should never fail, unless we run out of byte space route.append_node(callsign, ssid, Some(rssi)).ok()?; } else { // rip off all the futures and add ourselves @@ -174,7 +175,7 @@ pub fn append_internet_to_packet_route( route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false)); } } else { - route.append_node(callsign, ssid, Some(rssi)).ok()?; + route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false))?; } route.push_internet()?;