Skip to content

Commit

Permalink
rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Aug 6, 2024
1 parent 4244114 commit b23bb30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/hotshot/src/traits/networking/libp2p_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ use libp2p_networking::{
network::{
behaviours::request_response::{Request, Response},
spawn_network_node,
stake_table_transport::construct_auth_message,
transport::construct_auth_message,
MeshParams,
NetworkEvent::{self, DirectRequest, DirectResponse, GossipMsg},
NetworkNodeConfig, NetworkNodeConfigBuilder, NetworkNodeHandle, NetworkNodeReceiver,
Expand Down
4 changes: 2 additions & 2 deletions crates/libp2p-networking/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod error;
/// functionality of a libp2p network node
mod node;
/// Alternative Libp2p transport implementations
pub mod stake_table_transport;
pub mod transport;

use std::{collections::HashSet, fmt::Debug, str::FromStr};

Expand All @@ -33,8 +33,8 @@ use quic::async_std::Transport as QuicTransport;
#[cfg(async_executor_impl = "tokio")]
use quic::tokio::Transport as QuicTransport;
use serde::{Deserialize, Serialize};
use stake_table_transport::StakeTableAuthentication;
use tracing::instrument;
use transport::StakeTableAuthentication;

use self::behaviours::request_response::{Request, Response};
pub use self::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,9 @@ mod test {

use std::{collections::HashSet, sync::Arc};

use super::write_length_delimited;
use super::*;
use hotshot_types::{signature_key::BLSPubKey, traits::signature_key::SignatureKey};

use super::StakeTableAuthentication;

/// A mock type to help with readability
type MockStakeTableAuth = StakeTableAuthentication<DummyTransport, BLSPubKey, Connection>;

Expand Down Expand Up @@ -723,12 +721,10 @@ mod test {

// Write the message to a buffer
let mut buffer = Vec::new();
super::write_length_delimited(&mut buffer, message)
.await
.unwrap();
write_length_delimited(&mut buffer, message).await.unwrap();

// Read the message from the buffer
let read_message = super::read_length_delimited(&mut buffer.as_slice(), 1024)
let read_message = read_length_delimited(&mut buffer.as_slice(), 1024)
.await
.unwrap();

Expand Down

0 comments on commit b23bb30

Please sign in to comment.