mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-30 10:18:41 -04:00
[ci skip] measure relay time
This commit is contained in:
parent
792e05a187
commit
c3fddba239
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue