pass fmt and clippy

This commit is contained in:
musitdev 2023-11-08 18:20:31 +01:00
parent 32789c9a11
commit 901b76c4e0
3 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1,7 @@
use crate::stores::data_cache::DataCache;
use solana_sdk::commitment_config::CommitmentConfig;
use crate::stores::block_information_store::BlockInformation;
use crate::stores::data_cache::DataCache;
use serde::Serialize;
use solana_sdk::commitment_config::CommitmentConfig;
use solana_sdk::hash::Hash;
use solana_sdk::signature::Signature;
use solana_sdk::transaction::{uses_durable_nonce, Transaction, VersionedTransaction};

View File

@ -58,9 +58,9 @@ impl AccountPretty {
read_stake_from_account_data(self.data.as_slice())
}
pub fn read_stake_history(&self) -> Option<StakeHistory> {
read_historystake_from_account(self.data.as_slice())
}
// pub fn read_stake_history(&self) -> Option<StakeHistory> {
// read_historystake_from_account(self.data.as_slice())
// }
pub fn read_vote(&self) -> anyhow::Result<VoteState> {
if self.data.is_empty() {

View File

@ -14,10 +14,9 @@ use std::sync::Arc;
use tokio::sync::mpsc::Receiver;
use yellowstone_grpc_client::GeyserGrpcClient;
use yellowstone_grpc_proto::geyser::CommitmentLevel;
use yellowstone_grpc_proto::prelude::subscribe_update::UpdateOneof;
use yellowstone_grpc_proto::prelude::SubscribeRequestFilterAccounts;
use yellowstone_grpc_proto::prelude::SubscribeRequestFilterBlocksMeta;
use yellowstone_grpc_proto::prelude::SubscribeUpdate;
use yellowstone_grpc_proto::prelude::{subscribe_update::UpdateOneof, SubscribeRequestFilterSlots};
use yellowstone_grpc_proto::tonic::Status;
mod account;