Skip to content

Commit

Permalink
Fix argument types after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Nov 27, 2024
1 parent b9150af commit 0755013
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/subspace-gateway/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use futures::{select, FutureExt};
use std::env;
use std::num::NonZeroUsize;
use std::pin::pin;
use std::sync::Arc;
use subspace_core_primitives::pieces::Record;
use subspace_data_retrieval::object_fetcher::ObjectFetcher;
use subspace_erasure_coding::ErasureCoding;
Expand Down Expand Up @@ -103,7 +102,7 @@ pub async fn run(run_options: RunOptions) -> anyhow::Result<()> {
Semaphore::new(out_connections as usize * PIECE_PROVIDER_MULTIPLIER),
);
let piece_getter = DsnPieceGetter::new(piece_provider);
let object_fetcher = ObjectFetcher::new(piece_getter, erasure_coding, Some(max_size));
let object_fetcher = ObjectFetcher::new(piece_getter.into(), erasure_coding, Some(max_size));

let rpc_api = SubspaceGatewayRpc::new(SubspaceGatewayRpcConfig { object_fetcher });
let rpc_handle = launch_rpc_server(rpc_api, rpc_options).await?;
Expand Down

0 comments on commit 0755013

Please sign in to comment.