-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustls upgrade fix #1403
Rustls upgrade fix #1403
Changes from all commits
27e579a
eca3c3a
cd9495e
3d7a538
081ddc5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ use std::sync::Arc; | |
use log::{error, info}; | ||
|
||
use clap::{self, Arg}; | ||
use rustls; | ||
use zingolib::config::ChainType; | ||
use zingolib::testutils::regtest; | ||
use zingolib::wallet::WalletBase; | ||
|
@@ -513,6 +514,11 @@ fn dispatch_command_or_start_interactive(cli_config: &ConfigTemplate) { | |
|
||
/// TODO: Add Doc Comment Here! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upgrade the doc-comment, to something better. Please add a doc-test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the entrypoint to the CLI so i'm not sure we can add a doc-test for this fn |
||
pub fn run_cli() { | ||
// install default crypto provider (ring) | ||
if let Err(e) = rustls::crypto::ring::default_provider().install_default() { | ||
eprintln!("Error installing crypto provider: {:?}", e) | ||
}; | ||
|
||
// Initialize logging | ||
if let Err(e) = LightClient::init_logging() { | ||
eprintln!("Could not initialize logging: {e}") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line should not be necessary as you are calling
rustls::crypto::ring::default_provider().install_default()
with its full path