From 67cc21e304eeaa626e7dc20ef0a3b45a4516b853 Mon Sep 17 00:00:00 2001 From: Kyle Espinola Date: Thu, 9 May 2024 11:50:33 +0200 Subject: [PATCH] fix: clippy errors --- grpc-ingest/src/config.rs | 4 ++-- grpc-ingest/src/grpc.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/grpc-ingest/src/config.rs b/grpc-ingest/src/config.rs index 174f6ad8d..151dfbe08 100644 --- a/grpc-ingest/src/config.rs +++ b/grpc-ingest/src/config.rs @@ -63,11 +63,11 @@ pub struct ConfigGrpc { } impl ConfigGrpc { - pub fn default_geyser_update_message_buffer_size() -> usize { + pub const fn default_geyser_update_message_buffer_size() -> usize { 100_000 } - pub fn solana_seen_event_cache_max_size() -> usize { + pub const fn solana_seen_event_cache_max_size() -> usize { 10_000 } } diff --git a/grpc-ingest/src/grpc.rs b/grpc-ingest/src/grpc.rs index 4fd4102de..11f9dddaa 100644 --- a/grpc-ingest/src/grpc.rs +++ b/grpc-ingest/src/grpc.rs @@ -4,7 +4,6 @@ use { }, anyhow::Context, futures::{channel::mpsc, stream::StreamExt, SinkExt}, - hex, lru::LruCache, redis::{streams::StreamMaxlen, RedisResult, Value as RedisValue}, std::num::NonZeroUsize, @@ -14,7 +13,7 @@ use { task::JoinSet, time::{sleep, Instant}, }, - tracing::{error, warn}, + tracing::warn, yellowstone_grpc_client::GeyserGrpcClient, yellowstone_grpc_proto::{ geyser::SubscribeRequest, prelude::subscribe_update::UpdateOneof, prost::Message,