mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-13 17:08:05 +00:00
Release v1.5.5 parser SDK sync
This commit is contained in:
@@ -31,9 +31,11 @@ async fn test_grpc() -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("Subscribing to Yellowstone gRPC events...");
|
||||
|
||||
// Create low-latency configuration.
|
||||
let mut config: ClientConfig = ClientConfig::default();
|
||||
// Metrics add overhead; enable explicitly with STREAMER_ENABLE_METRICS=1.
|
||||
config.enable_metrics = std::env::var("STREAMER_ENABLE_METRICS").as_deref() == Ok("1");
|
||||
let config = ClientConfig {
|
||||
enable_metrics: std::env::var("STREAMER_ENABLE_METRICS").as_deref() == Ok("1"),
|
||||
..Default::default()
|
||||
};
|
||||
let grpc = YellowstoneGrpc::new_with_config(
|
||||
"https://solana-yellowstone-grpc.publicnode.com:443".to_string(),
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user