Skip to content

Commit

Permalink
chore: clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Dec 17, 2024
1 parent 42d60a3 commit c6ba08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer-svc/src/tests/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(crate) fn peer_key_builder() -> Builder<Init> {

// Generate an event for the same network,model,controller,stream
// The event and height are random when when its None.
pub(crate) fn random_peer_key<'a>(expiration: Option<u64>) -> PeerKey {
pub(crate) fn random_peer_key(expiration: Option<u64>) -> PeerKey {
peer_key_builder()
.with_expiration(expiration.unwrap_or_else(|| thread_rng().gen()))
.with_id(&NodeKey::random())
Expand Down

0 comments on commit c6ba08f

Please sign in to comment.