fix clippy

This commit is contained in:
Al Liu 2024-02-06 13:49:15 +08:00
parent 959cbfd646
commit c4783b9a2b
No known key found for this signature in database
GPG Key ID: C8AE9A6E0166923E
4 changed files with 4 additions and 10 deletions

View File

@ -1,14 +1,12 @@
// crates
use axum::extract::{Json, Query, State};
use axum::response::{IntoResponse, Response};
use hyper::StatusCode;
use axum::extract::{Json, State};
use axum::response::Response;
use nomos_node::make_request_and_return_response;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
// internal
use full_replication::{Blob, Certificate};
use full_replication::Blob;
use nomos_api::http::da::da_blobs;
use nomos_core::{da::blob, tx::Transaction};
use nomos_core::da::blob;
use overwatch_rs::overwatch::handle::OverwatchHandle;
pub(crate) async fn blobs(

View File

@ -13,7 +13,6 @@ use full_replication::Certificate;
use nomos_api::http::storage;
use nomos_core::block::{Block, BlockId};
use nomos_core::tx::Transaction;
use nomos_node::make_request_and_return_response;
use nomos_storage::backends::StorageSerde;
use overwatch_rs::overwatch::handle::OverwatchHandle;

View File

@ -15,7 +15,6 @@ pub type ApiArgs = HttpArgs;
pub struct Config {
pub log: <Logger as ServiceData>::Settings,
pub api: <ApiService<AxumBackend<Tx, Wire>> as ServiceData>::Settings,
pub da: <DataAvailability as ServiceData>::Settings,
}
impl Config {

View File

@ -19,7 +19,6 @@ use nomos_storage::{backends::sled::SledBackend, StorageService};
struct Explorer {
log: ServiceHandle<Logger>,
storage: ServiceHandle<StorageService<SledBackend<Wire>>>,
da: ServiceHandle<DataAvailability>,
api: ServiceHandle<ApiService<AxumBackend<Tx, Wire>>>,
}
@ -55,7 +54,6 @@ fn main() -> Result<()> {
storage: SledBackendSettings {
db_path: DEFAULT_DB_PATH.into(),
},
da: config.da,
api: config.api,
},
None,