mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-03-12 08:56:33 -04:00
[ci skip] measure relay time
This commit is contained in:
parent
792e05a187
commit
c3fddba239
@ -1101,9 +1101,11 @@ impl NetworkManager {
|
||||
|
||||
// Relay the packet to the desired destination
|
||||
veilid_log!(self trace "relaying {} bytes to {}", data.len(), relay_nr);
|
||||
let cur_ts = Timestamp::now();
|
||||
if let Err(e) = pin_future!(self.send_data(relay_nr, data.to_vec())).await {
|
||||
veilid_log!(self debug "failed to relay envelope: {}" ,e);
|
||||
}
|
||||
veilid_log!(self debug target:"network_result", "relay time: {}", Timestamp::now() - cur_ts);
|
||||
}
|
||||
// Inform caller that we dealt with the envelope, but did not process it locally
|
||||
return Ok(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user