diff --git a/Cargo.toml b/Cargo.toml index 9db2459..46f865f 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "solana-streamer-sdk" -version = "0.2.3" +version = "0.2.4" edition = "2021" authors = ["William ", "sgxiang ", "wei <1415121722@qq.com>"] repository = "https://github.com/0xfnzero/solana-streamer" diff --git a/README.md b/README.md index ba55924..cd261cf 100755 --- a/README.md +++ b/README.md @@ -42,14 +42,14 @@ Add the dependency to your `Cargo.toml`: ```toml # Add to your Cargo.toml -solana-streamer-sdk = { path = "./solana-streamer", version = "0.2.3" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.2.4" } ``` ### Use crates.io ```toml # Add to your Cargo.toml -solana-streamer-sdk = "0.2.3" +solana-streamer-sdk = "0.2.4" ``` ## Usage Examples diff --git a/README_CN.md b/README_CN.md index c8c22d2..314062a 100644 --- a/README_CN.md +++ b/README_CN.md @@ -42,14 +42,14 @@ git clone https://github.com/0xfnzero/solana-streamer ```toml # 添加到您的 Cargo.toml -solana-streamer-sdk = { path = "./solana-streamer", version = "0.2.3" } +solana-streamer-sdk = { path = "./solana-streamer", version = "0.2.4" } ``` ### 使用 crates.io ```toml # 添加到您的 Cargo.toml -solana-streamer-sdk = "0.2.3" +solana-streamer-sdk = "0.2.4" ``` ## 使用示例 diff --git a/src/streaming/yellowstone_grpc.rs b/src/streaming/yellowstone_grpc.rs index 1efcfb5..d4261ce 100644 --- a/src/streaming/yellowstone_grpc.rs +++ b/src/streaming/yellowstone_grpc.rs @@ -35,9 +35,7 @@ impl YellowstoneGrpc { x_token: Option, config: StreamClientConfig, ) -> AnyResult { - let _ = rustls::crypto::ring::default_provider() - .install_default() - .map_err(|_| anyhow::anyhow!("Failed to install rustls crypto provider"))?; + let _ = rustls::crypto::ring::default_provider().install_default().ok(); let metrics = Arc::new(Mutex::new(PerformanceMetrics::new())); let config_arc = Arc::new(config.clone());