Skip to content

Commit fca2302

Browse files
committed
smol fix
1 parent 32365eb commit fca2302

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
services:
22
# Compute Node
33
compute:
4-
# image: "firstbatch/dkn-compute-node:latest"
5-
build: "./" # use this one instead if you want to build locally
4+
image: "firstbatch/dkn-compute-node:latest"
5+
# build: "./" # use this one instead if you want to build locally
66
environment:
77
RUST_LOG: ${RUST_LOG:-none,dkn_compute=info}
88
# Dria

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4747
tokio::spawn(async move {
4848
#[cfg(feature = "profiling")]
4949
{
50-
tokio::time::sleep(tokio::time::Duration::from_secs(120)).await;
50+
const PROFILE_DURATION_SECS: u64 = 120;
51+
tokio::time::sleep(tokio::time::Duration::from_secs(PROFILE_DURATION_SECS)).await;
5152
token.cancel();
5253
}
5354

@@ -69,7 +70,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6970
}
7071

7172
/// Waits for SIGTERM or SIGINT, and cancels the given token when the signal is received.
72-
#[cfg(not(feature = "profiling"))]
73+
#[allow(unused)]
7374
async fn wait_for_termination(cancellation: CancellationToken) -> std::io::Result<()> {
7475
use tokio::signal::unix::{signal, SignalKind};
7576

0 commit comments

Comments
 (0)