Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil-gadelshin committed Dec 6, 2024
1 parent fa4ef90 commit aaa6d7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/subspace-gateway/src/commands/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use subspace_core_primitives::hashes::{blake3_hash, Blake3Hash};
use subspace_core_primitives::pieces::PieceIndex;
use subspace_core_primitives::BlockNumber;
use subspace_data_retrieval::object_fetcher::ObjectFetcher;
use subspace_data_retrieval::piece_getter::ObjectPieceGetter;
use subspace_data_retrieval::piece_getter::PieceGetter;
use tracing::{debug, error, trace};

pub(crate) struct ServerParameters<PG>
where
PG: ObjectPieceGetter + Send + Sync + 'static,
PG: PieceGetter + Send + Sync + 'static,
{
pub(crate) object_fetcher: ObjectFetcher<PG>,
pub(crate) indexer_endpoint: String,
Expand Down Expand Up @@ -65,7 +65,7 @@ async fn serve_object<PG>(
additional_data: web::Data<Arc<ServerParameters<PG>>>,
) -> impl Responder
where
PG: ObjectPieceGetter + Send + Sync + 'static,
PG: PieceGetter + Send + Sync + 'static,
{
let server_params = additional_data.into_inner();
let key = key.into_inner();
Expand Down Expand Up @@ -136,7 +136,7 @@ where

pub async fn start_server<PG>(server_params: ServerParameters<PG>) -> std::io::Result<()>
where
PG: ObjectPieceGetter + Send + Sync + 'static,
PG: PieceGetter + Send + Sync + 'static,
{
let server_params = Arc::new(server_params);
let http_endpoint = server_params.http_endpoint.clone();
Expand Down

0 comments on commit aaa6d7e

Please sign in to comment.