fix clippy
This commit is contained in:
parent
959cbfd646
commit
c4783b9a2b
|
@ -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(
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue