Skip to content

Commit e4f4411

Browse files
committed
Debug bao bug
1 parent b9081f5 commit e4f4411

File tree

3 files changed

+30
-23
lines changed

3 files changed

+30
-23
lines changed

Cargo.lock

Lines changed: 17 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ derive_more = { version = "1.0.0", features = [
2525
futures-buffered = "0.2.4"
2626
futures-lite = "2.3.0"
2727
indicatif = "0.17.7"
28-
iroh-blobs = { version = "0.34", features = ["net_protocol"] }
28+
iroh-blobs = { version = "0.34", features = ["net_protocol"], path = "../iroh-blobs" }
2929
iroh-io = "0.6"
3030
iroh = "0.34"
3131
num_cpus = "1.16.0"
@@ -45,3 +45,6 @@ nix = { version = "0.29", features = ["signal", "process"] }
4545
rand = "0.8.5"
4646
serde_json = "1.0.108"
4747
tempfile = "3.8.1"
48+
49+
[patch.crates-io]
50+
bao-tree = { path = "../bao-tree" }

src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub enum Commands {
101101
Receive(ReceiveArgs),
102102
}
103103

104-
#[derive(Parser, Debug)]
104+
#[derive(Parser, Debug, Default)]
105105
pub struct CommonArgs {
106106
/// The IPv4 address that magicsocket will listen on.
107107
///
@@ -142,6 +142,12 @@ pub enum RelayModeOption {
142142
Custom(RelayUrl),
143143
}
144144

145+
impl Default for RelayModeOption {
146+
fn default() -> Self {
147+
Self::Default
148+
}
149+
}
150+
145151
impl FromStr for RelayModeOption {
146152
type Err = anyhow::Error;
147153

@@ -897,6 +903,8 @@ async fn receive(args: ReceiveArgs) -> anyhow::Result<()> {
897903
#[tokio::main]
898904
async fn main() -> anyhow::Result<()> {
899905
tracing_subscriber::fmt::init();
906+
receive(ReceiveArgs { ticket: "blobader23cmqjmmh3kkd63whpkogssgymo5hvkmcgsdsthoportxsn24ajdnb2hi4dthixs6zlvo4ys2mjoojswyylzfzuxe33ifzxgk5dxn5zgwlrpaiafetezdd2pkayaycuab4xu6ubqckzl557zlttgh275ch36ydmh5ygrmxsmijvfy7xmf3amvdkbmfag".parse().unwrap(), common: Default::default() }).await?;
907+
return Ok(());
900908
let args = match Args::try_parse() {
901909
Ok(args) => args,
902910
Err(cause) => {

0 commit comments

Comments
 (0)