Skip to content

Commit

Permalink
fix: Add p2p namespace as a const value
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed Jan 14, 2025
1 parent d52e638 commit 2044170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage-provider/server/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ mod register;
pub(crate) use bootstrap::BootstrapConfig;
pub(crate) use register::RegisterConfig;

const P2P_NAMESPACE: &str = "polka-storage";

#[derive(Debug, Clone, Copy, ValueEnum)]
pub enum NodeType {
Bootstrap,
Expand Down Expand Up @@ -103,7 +105,7 @@ pub async fn run_register_node(
rendezvous_point,
rendezvous_point_address,
None,
Namespace::from_static("polka-storage"),
Namespace::from_static(P2P_NAMESPACE),
) => {
if let Err(e) = res {
error!("Failed to start P2P node. Reason: {e}");
Expand Down

0 comments on commit 2044170

Please sign in to comment.