Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed May 9, 2024
1 parent 75c4115 commit 67cc21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grpc-ingest/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
3 changes: 1 addition & 2 deletions grpc-ingest/src/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 67cc21e

Please sign in to comment.