net: Create datastore in P2p::new()

This commit is contained in:
parazyd
2024-07-05 11:17:58 +02:00
parent ee147076b3
commit c6227e38e4
13 changed files with 39 additions and 20 deletions

View File

@@ -99,7 +99,7 @@ impl Dchat {
// ANCHOR: main
async_daemonize!(realmain);
async fn realmain(args: Args, ex: Arc<smol::Executor<'static>>) -> Result<()> {
let p2p = net::P2p::new(args.net.into(), ex.clone()).await;
let p2p = net::P2p::new(args.net.into(), ex.clone()).await?;
// ANCHOR: dnet
info!("Starting dnet subs task");