Skip to content

Commit

Permalink
sort and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Jan 31, 2024
1 parent 61f5a8b commit f928211
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ members = [
"dos",
"download-utils",
"entry",
"hook-service",
"faucet",
"frozen-abi",
"frozen-abi/macro",
Expand All @@ -41,6 +40,7 @@ members = [
"geyser-plugin-interface",
"geyser-plugin-manager",
"gossip",
"hook-service",
"install",
"keygen",
"ledger",
Expand Down
2 changes: 1 addition & 1 deletion validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ solana-core = { workspace = true }
solana-download-utils = { workspace = true }
solana-entry = { workspace = true }
solana-faucet = { workspace = true }
solana-hook-service-proto = { workspace = true }
solana-genesis-utils = { workspace = true }
solana-geyser-plugin-interface = { workspace = true }
solana-geyser-plugin-manager = { workspace = true }
solana-gossip = { workspace = true }
solana-hook-service-proto = { workspace = true }
solana-ledger = { workspace = true }
solana-logger = { workspace = true }
solana-metrics = { workspace = true }
Expand Down
31 changes: 14 additions & 17 deletions validator/src/hook_service.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
use solana_hook_service_proto::hook_service::hook_service_server::{
HookService, HookServiceServer,
use {
solana_hook_service_proto::hook_service::{
hook_service_server::{HookService, HookServiceServer},
EnableTpuRequest, EnableTpuResponse, MarkAccountsForDiscardRequest,
MarkAccountsForDiscardResponse, SendBundleRequest, SendBundleResponse, SendPacketsRequest,
SendPacketsResponse, SetMaxComputeRequest, SetMaxComputeResponse,
SetShredForwarderAddressRequest, SetShredForwarderAddressResponse, SetTpuAddressRequest,
SetTpuAddressResponse,
},
std::path::{Path, PathBuf},
thiserror::Error,
tokio::{fs::create_dir_all, net::UnixListener, task::JoinHandle},
tokio_stream::wrappers::{ReceiverStream, UnixListenerStream},
tonic::{async_trait, transport::Server, Request, Response, Status, Streaming},
};
use solana_hook_service_proto::hook_service::{
EnableTpuRequest, EnableTpuResponse, MarkAccountsForDiscardRequest,
MarkAccountsForDiscardResponse, SendBundleRequest, SendBundleResponse, SendPacketsRequest,
SendPacketsResponse, SetMaxComputeRequest, SetMaxComputeResponse,
SetShredForwarderAddressRequest, SetShredForwarderAddressResponse, SetTpuAddressRequest,
SetTpuAddressResponse,
};
use std::path::{Path, PathBuf};
use thiserror::Error;
use tokio::fs::create_dir_all;
use tokio::net::UnixListener;
use tokio::task::JoinHandle;
use tokio_stream::wrappers::{ReceiverStream, UnixListenerStream};
use tonic::transport::Server;
use tonic::{async_trait, Request, Response, Status, Streaming};

#[derive(Debug, Error)]
pub enum HookServiceError {
Expand Down

0 comments on commit f928211

Please sign in to comment.