Skip to content

Commit

Permalink
freat(repo): Removed binary for ws-streamer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xterminator committed Dec 13, 2024
1 parent 9f97d10 commit 7ab920a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 16 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ run-publisher-testnet-profiling:
# Streamer Run Commands
# ------------------------------------------------------------

run-streamer-local:
cargo run --package fuel-streams-ws --bin ws-streamer -- --config-path crates/fuel-streams-ws/config.toml

run-streamer: check-network
@./scripts/run_streamer.sh \
--mode $(MODE) \
Expand Down
14 changes: 8 additions & 6 deletions crates/fuel-networks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ impl FuelNetwork {
Url::parse("http://0.0.0.0:9003").expect("working url")
}
FuelNetwork::Testnet => {
Url::parse("http://0.0.0.0:9003").expect("working url")
Url::parse("http://stream-testnet.fuel.network:9003")
.expect("working url")
}
FuelNetwork::Mainnet => {
Url::parse("http://0.0.0.0:9003").expect("working url")
Url::parse("http://stream.fuel.network:9003")
.expect("working url")
}
}
}
Expand All @@ -83,11 +85,11 @@ impl FuelNetwork {
Url::parse("ws://0.0.0.0:9003").expect("working url")
}
FuelNetwork::Testnet => {
Url::parse("ws://0.0.0.0:9003").expect("working url")
}
FuelNetwork::Mainnet => {
Url::parse("ws://0.0.0.0:9003").expect("working url")
Url::parse("ws://stream-testnet.fuel.network:9003")
.expect("working url")
}
FuelNetwork::Mainnet => Url::parse("ws://stream.fuel.network:9003")
.expect("working url"),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl FuelCoreLike for FuelCore {
historical: bool,
) -> anyhow::Result<()> {
if !historical {
// self.fuel_service.await_relayer_synced().await?;
self.fuel_service.await_relayer_synced().await?;
}
Ok(())
}
Expand Down
4 changes: 0 additions & 4 deletions crates/fuel-streams-ws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ version = { workspace = true }
rust-version = { workspace = true }
publish = false

[[bin]]
name = "ws-streamer"
path = "src/bin/ws-streamer.rs"

[dependencies]
actix-cors = { workspace = true }
actix-server = { workspace = true }
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/run_streamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ COMMON_ARGS=(

# Execute based on mode
if [ "$MODE" == "dev" ]; then
cargo run -p fuel-streams-ws --bin ws-streamer -- "${COMMON_ARGS[@]}" ${EXTRA_ARGS}
cargo run -p fuel-streams-ws -- "${COMMON_ARGS[@]}" ${EXTRA_ARGS}
else
cargo build --profile profiling --package fuel-streams-ws --bin ws-streamer
cargo build --profile profiling --package fuel-streams-ws
samply record ./target/profiling/fuel-streams-ws "${COMMON_ARGS[@]}" ${EXTRA_ARGS}
fi

0 comments on commit 7ab920a

Please sign in to comment.