forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpu-client: Move
send_messages_with_spinner
from program (solana-la…
…bs#20960) We have too many ways of sending transactions, and too many reimplementations of the same logic all over the place. The program deploy logic and stake-o-matic currently make the most use of the TPU client, so this merges their implementations into one place to be reused by both. Yay for consolidation!
- Loading branch information
Showing
6 changed files
with
192 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//! Spinner creator | ||
use indicatif::{ProgressBar, ProgressStyle}; | ||
|
||
pub(crate) fn new_progress_bar() -> ProgressBar { | ||
let progress_bar = ProgressBar::new(42); | ||
progress_bar | ||
.set_style(ProgressStyle::default_spinner().template("{spinner:.green} {wide_msg}")); | ||
progress_bar.enable_steady_tick(100); | ||
progress_bar | ||
} |
Oops, something went wrong.