From 0753e0bcdd3d606f8f0226a3980bcd817117abaa Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 1 Nov 2023 00:00:00 +0000 Subject: feat(claim) create basic event replacable event with root-commit, name, description and relay tags --- src/sub_commands/prs/create.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sub_commands/prs/create.rs') diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs index aad80f4..d82f53e 100644 --- a/src/sub_commands/prs/create.rs +++ b/src/sub_commands/prs/create.rs @@ -105,6 +105,11 @@ pub async fn launch( "ws://localhost:8056".to_string(), ]; + println!( + "posting 1 pull request with {} commits...", + events.len() - 1 + ); + send_events( &client, events, @@ -118,7 +123,7 @@ pub async fn launch( Ok(()) } -async fn send_events( +pub async fn send_events( #[cfg(test)] client: &crate::client::MockConnect, #[cfg(not(test))] client: &Client, events: Vec, @@ -128,11 +133,6 @@ async fn send_events( ) -> Result<()> { let (_, _, _, all) = unique_and_duplicate_all(&my_write_relays, &repo_read_relays); - println!( - "posting 1 pull request with {} commits...", - events.len() - 1 - ); - let m = MultiProgress::new(); let pb_style = ProgressStyle::with_template(if animate { " {spinner} {prefix} {bar} {pos}/{len} {msg}" -- cgit v1.2.3