diff options
Diffstat (limited to 'src/sub_commands/prs/create.rs')
| -rw-r--r-- | src/sub_commands/prs/create.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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( | |||
| 105 | "ws://localhost:8056".to_string(), | 105 | "ws://localhost:8056".to_string(), |
| 106 | ]; | 106 | ]; |
| 107 | 107 | ||
| 108 | println!( | ||
| 109 | "posting 1 pull request with {} commits...", | ||
| 110 | events.len() - 1 | ||
| 111 | ); | ||
| 112 | |||
| 108 | send_events( | 113 | send_events( |
| 109 | &client, | 114 | &client, |
| 110 | events, | 115 | events, |
| @@ -118,7 +123,7 @@ pub async fn launch( | |||
| 118 | Ok(()) | 123 | Ok(()) |
| 119 | } | 124 | } |
| 120 | 125 | ||
| 121 | async fn send_events( | 126 | pub async fn send_events( |
| 122 | #[cfg(test)] client: &crate::client::MockConnect, | 127 | #[cfg(test)] client: &crate::client::MockConnect, |
| 123 | #[cfg(not(test))] client: &Client, | 128 | #[cfg(not(test))] client: &Client, |
| 124 | events: Vec<nostr::Event>, | 129 | events: Vec<nostr::Event>, |
| @@ -128,11 +133,6 @@ async fn send_events( | |||
| 128 | ) -> Result<()> { | 133 | ) -> Result<()> { |
| 129 | let (_, _, _, all) = unique_and_duplicate_all(&my_write_relays, &repo_read_relays); | 134 | let (_, _, _, all) = unique_and_duplicate_all(&my_write_relays, &repo_read_relays); |
| 130 | 135 | ||
| 131 | println!( | ||
| 132 | "posting 1 pull request with {} commits...", | ||
| 133 | events.len() - 1 | ||
| 134 | ); | ||
| 135 | |||
| 136 | let m = MultiProgress::new(); | 136 | let m = MultiProgress::new(); |
| 137 | let pb_style = ProgressStyle::with_template(if animate { | 137 | let pb_style = ProgressStyle::with_template(if animate { |
| 138 | " {spinner} {prefix} {bar} {pos}/{len} {msg}" | 138 | " {spinner} {prefix} {bar} {pos}/{len} {msg}" |