Skip to content

Commit bc21d38

Browse files
committed
fix: change gasket version
1 parent 8f664f7 commit bc21d38

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

Cargo.lock

+6-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ mithril = ["mithril-client"]
2626
# pallas = { path = "../pallas/pallas", features = ["hardano"] }
2727
pallas = { version = "0.32.0", features = ["hardano"] }
2828

29-
gasket = { git = "https://github.com/construkts/gasket-rs.git", features = ["derive"] }
30-
gasket-prometheus = { git = "https://github.com/construkts/gasket-rs.git" }
29+
gasket = { git = "https://github.com/jpg-store/gasket-rs.git", features = ["derive"], branch="martin/fix-gauge-0.7.0" }
30+
gasket-prometheus = { git = "https://github.com/jpg-store/gasket-rs.git", branch="martin/fix-gauge-0.7.0" }
3131
# gasket = { path = "../../construkts/gasket-rs/gasket", features = ["derive"] }
3232
# gasket = { git = "https://github.com/construkts/gasket-rs.git", features = ["derive"] }
3333

src/bin/oura/run_daemon.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,12 @@ pub fn run(args: &Args) -> Result<(), Error> {
6060
let prometheus = tokio_rt.spawn(serve_prometheus(daemon.clone(), metrics));
6161
let tui = tokio_rt.spawn(console::render(daemon.clone(), args.tui));
6262

63-
let daemon = Arc::try_unwrap(daemon).map_err(|daemon| {
64-
Error::Custom(format!(
65-
"daemon still has {} references",
66-
Arc::strong_count(&daemon)
67-
))
68-
})?;
69-
7063
daemon.block();
7164

7265
info!("oura is stopping");
7366

67+
daemon.teardown();
68+
7469
prometheus.abort();
7570
tui.abort();
7671

src/daemon/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn connect_stages<S: Sink>(
9090
tethers.push(sink.spawn(policy.clone()));
9191
tethers.push(cursor.spawn(policy));
9292

93-
let runtime = Daemon::new(tethers);
93+
let runtime = Daemon(tethers);
9494

9595
Ok(runtime)
9696
}

0 commit comments

Comments
 (0)