File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
2
# Compute Node
3
3
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
6
6
environment :
7
7
RUST_LOG : ${RUST_LOG:-none,dkn_compute=info}
8
8
# Dria
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
47
47
tokio:: spawn ( async move {
48
48
#[ cfg( feature = "profiling" ) ]
49
49
{
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 ;
51
52
token. cancel ( ) ;
52
53
}
53
54
@@ -69,7 +70,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
69
70
}
70
71
71
72
/// Waits for SIGTERM or SIGINT, and cancels the given token when the signal is received.
72
- #[ cfg ( not ( feature = "profiling" ) ) ]
73
+ #[ allow ( unused ) ]
73
74
async fn wait_for_termination ( cancellation : CancellationToken ) -> std:: io:: Result < ( ) > {
74
75
use tokio:: signal:: unix:: { signal, SignalKind } ;
75
76
You can’t perform that action at this time.
0 commit comments