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 // crates
use axum::extract::{Json, Query, State}; use axum::extract::{Json, State};
use axum::response::{IntoResponse, Response}; use axum::response::Response;
use hyper::StatusCode;
use nomos_node::make_request_and_return_response; use nomos_node::make_request_and_return_response;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
// internal // internal
use full_replication::{Blob, Certificate}; use full_replication::Blob;
use nomos_api::http::da::da_blobs; 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; use overwatch_rs::overwatch::handle::OverwatchHandle;
pub(crate) async fn blobs( pub(crate) async fn blobs(

View File

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

View File

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

View File

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