Skip to content

Commit

Permalink
Fix network deps versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiezzel committed Sep 4, 2024
1 parent a46cde2 commit a843e18
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ members = ["crates/*"]
resolver = "2"

[workspace.dependencies]
sqd-contract-client = { git = "https://github.com/subsquid/subsquid-network.git", rev = "cb00752" } # FIXME: change to ver
sqd-messages = { git = "https://github.com/subsquid/subsquid-network.git", rev = "cb00752" } # FIXME: change to ver
sqd-network-transport = { git = "https://github.com/subsquid/subsquid-network.git", rev = "cb00752" } # FIXME: change to ver
sqd-contract-client = { git = "https://github.com/subsquid/subsquid-network.git", version = "1.0.7" }
sqd-messages = { git = "https://github.com/subsquid/subsquid-network.git", version = "1.0.3" }
sqd-network-transport = { git = "https://github.com/subsquid/subsquid-network.git", version = "1.0.20" }
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ CMD ["peer-checker"]

COPY crates/logs-collector/healthcheck.sh .
RUN chmod +x ./healthcheck.sh
HEALTHCHECK --interval=5s CMD ./healthcheck.sh
HEALTHCHECK --interval=5s CMD ./healthcheck.sh
2 changes: 1 addition & 1 deletion crates/peer-checker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ sqd-messages = { workspace = true }
sqd-network-transport = { workspace = true, features = ["peer-checker"] }

[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.6"
tikv-jemallocator = "0.6"
8 changes: 5 additions & 3 deletions crates/peer-checker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use axum::routing::post;
use axum::{Extension, Json, Router};
use clap::Parser;
use env_logger::Env;
use tokio::signal::unix::{signal, SignalKind};

use sqd_network_transport::{
P2PTransportBuilder, PeerCheckerConfig, PeerCheckerTransportHandle, ProbeRequest, ProbeResult,
Expand All @@ -15,7 +16,6 @@ use sqd_network_transport::{

#[cfg(not(target_env = "msvc"))]
use tikv_jemallocator::Jemalloc;
use tokio::signal::unix::{signal, SignalKind};

#[cfg(not(target_env = "msvc"))]
#[global_allocator]
Expand Down Expand Up @@ -98,8 +98,10 @@ async fn main() -> anyhow::Result<()> {
config.probe_timeout = Duration::from_secs(args.probe_timeout_sec);
config
});
let mut config = PeerCheckerConfig::default();
config.probe_queue_size = args.probe_queue_size;
let config = PeerCheckerConfig {
probe_queue_size: args.probe_queue_size,
..Default::default()
};
let transport_handle = transport_builder.build_peer_checker(config)?;

// Start HTTP server
Expand Down

0 comments on commit a843e18

Please sign in to comment.