Skip to content

Commit

Permalink
Suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinI committed Aug 27, 2024
1 parent 9fb2a15 commit 0d7bd83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions marketplace-builder/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ impl BuilderConfig {
// spawn the builder service
tracing::info!("Running builder against hotshot events API at {events_api_url}",);

let stream =
marketplace_builder_core::utils::EventServiceStream::<SeqTypes, V0_1>::connect(
events_api_url,
)
.await?;
let stream = marketplace_builder_core::utils::EventServiceStream::<
SeqTypes,
SequencerApiVersion,
>::connect(events_api_url)
.await?;

async_spawn(async move {
let res = run_builder_service::<SeqTypes>(hooks, senders, stream).await;
Expand Down
3 changes: 1 addition & 2 deletions sequencer/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,15 +532,14 @@ pub mod test_helpers {
let mut legacy_builder_url = "http://example.com".parse().unwrap();
let mut marketplace_builder_url = "http://example.com".parse().unwrap();

if <V as Versions>::Base::VERSION <= MarketplaceVersion::VERSION {
if <V as Versions>::Base::VERSION < MarketplaceVersion::VERSION {
let (task, url) =
run_test_builder::<{ NUM_NODES }>(cfg.network_config.builder_port()).await;
builder_tasks.push(task);
legacy_builder_url = url;
};

if <V as Versions>::Upgrade::VERSION >= MarketplaceVersion::VERSION {
println!("Running marketplace builder!");
let (task, url) = run_marketplace_builder::<{ NUM_NODES }>(
cfg.network_config.builder_port(),
NodeState::default(),
Expand Down

0 comments on commit 0d7bd83

Please sign in to comment.