Skip to content

Commit

Permalink
feat(node): add feature flag for tcp/quic
Browse files Browse the repository at this point in the history
Added a feature flag to be able to toggle quic instead of the tcp default.
  • Loading branch information
aed900 committed Aug 15, 2023
1 parent aba95fb commit 27fa316
Show file tree
Hide file tree
Showing 9 changed files with 311 additions and 8 deletions.
241 changes: 241 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sn_cli/src/subcommands/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub(crate) async fn files_cmds(
Ok(())
}

/// Givena directory, upload all files contained
/// Given a directory, upload all files contained
/// Optionally verifies data was stored successfully
async fn upload_files(
files_path: PathBuf,
Expand Down
2 changes: 2 additions & 0 deletions sn_networking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version = "0.4.17"
[features]
default=[]
local-discovery=["libp2p/mdns"]
quic=["libp2p-quic"]

[dependencies]
async-trait = "0.1"
Expand All @@ -21,6 +22,7 @@ futures = "~0.3.13"
itertools = "~0.10.1"
custom_debug = "~0.5.0"
libp2p = { version="0.52", features = ["tokio", "dns", "kad", "macros", "request-response", "cbor","identify", "autonat", "noise", "tcp", "yamux"] }
libp2p-quic = { version = "0.8.0-alpha", features = ["tokio"], optional = true }
rand = { version = "~0.8.5", features = ["small_rng"] }
rmp-serde = "1.1.1"
serde = { version = "1.0.133", features = [ "derive", "rc" ]}
Expand Down

0 comments on commit 27fa316

Please sign in to comment.