Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/corrosion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ tripwire = { path = "../tripwire" }
uuid = { workspace = true }
shell-words = "1.1.0"
metrics-util = { workspace = true }

[target.'cfg(target_os = "linux")'.dependencies]
libsystemd = "0.7.0"

[build-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion crates/corrosion/src/command/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use metrics_util::MetricKindMask;
use spawn::wait_for_all_pending_handles;
use tokio_metrics::RuntimeMonitor;
use tracing::{error, info};
use tripwire::{PreemptibleFutureExt, Tripwire};
use tripwire::Tripwire;
// use tracing_filter::{legacy::Filter, FilterLayer};
// use tracing_subscriber::{reload::Handle, Registry};

Expand Down Expand Up @@ -211,6 +211,7 @@ fn spawn_systemd_notifier_if_needed(tripwire: Tripwire) {

#[cfg(target_os = "linux")]
fn send_systemd_keepalives(tripwire: Tripwire) {
use tripwire::PreemptibleFutureExt;
// Send every second
tokio::spawn(async move {
async move {
Expand Down
Loading