Open gaoming1998 opened 4 months ago
This may be related to #2319
What I tried to debug this was adding a subscription to live events:
let (doc, mut live_events) = docs.import_and_subscribe(ticket).await?;
loop {
let event = live_events.try_next().await?.expect("Another live event");
if let LiveEvent::SyncFinished(sync) = event {
println!("Sync finished: {sync:#?}");
break;
}
}
But then I get this output:
Sync finished: SyncEvent {
peer: PublicKey(uvpsmezolzb55a2n),
origin: Connect(
DirectJoin,
),
finished: SystemTime {
tv_sec: 1721035412,
tv_nsec: 832947810,
},
started: SystemTime {
tv_sec: 1721035412,
tv_nsec: 767314187,
},
result: Ok(
SyncDetails {
entries_received: 0,
entries_sent: 0,
},
),
}
doc id: rs33g4qlsr7x5agyuq4gbw4ud64zsx74jdjcd3shrga5shbqz73q
entry one: None
Hi, π
Using the code below, I can consistently reproduce
The output of the command is shown in the following figure π
but on another terminal, use iroh console , the output of the command is right
Am I using it incorrectly? How can I use it correctly?