Skip to content

Commit

Permalink
refactor: reduce extra-long lines (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcsmith authored Feb 1, 2024
1 parent b4d3085 commit 1d9164e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/scion/src/pan/path_strategy/async_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ where
};

tracing::debug!(
callback_time=?callback_time.duration_since(start), "waiting for paths or callback timeout"
callback_time=?callback_time.duration_since(start),
"waiting for paths or callback timeout"
);

// Wait for the callback duration, or until a pending path query completes. If there
Expand Down Expand Up @@ -407,7 +408,8 @@ mod tests {
) -> Result<Option<&'a Path>, PathFetchError>;
fn poll_requests(&mut self, now: Instant) -> Request;
fn handle_lookup_paths(&mut self, paths: &[Path], now: Instant);
fn is_path_available(&self, destination: IsdAsn, now: Instant) -> Result<bool, PathFetchError>;
fn is_path_available(&self, destination: IsdAsn, now: Instant)
-> Result<bool, PathFetchError>;
}
}

Expand Down
3 changes: 2 additions & 1 deletion multipass/test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export SCION_DISPATCHER_PATH=/tmp/dispatcher.sock
export SCION_DAEMON_ADDRESS="[$VM_ADDRESS]:30255"

rm -f $SCION_DISPATCHER_PATH
ssh -i multipass/test_id_ed25519 ubuntu@$VM_ADDRESS -fN -L $SCION_DISPATCHER_PATH:/run/shm/dispatcher/default.sock
ssh -i multipass/test_id_ed25519 ubuntu@$VM_ADDRESS -fN -L \
$SCION_DISPATCHER_PATH:/run/shm/dispatcher/default.sock

0 comments on commit 1d9164e

Please sign in to comment.