Skip to content

Commit

Permalink
gix style warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
VendettaReborn committed Mar 23, 2024
1 parent 6ff61be commit e03ba8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clash_lib/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main(){
fn main() {
if std::env::var("CLASH_RS_CI").is_ok() {
println!("cargo:rustc-cfg=ci");
}
}
}
6 changes: 3 additions & 3 deletions clash_lib/src/proxy/utils/test_utils/docker_runner.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//! This example will run a non-interactive command inside the container using `docker exec`
use std::collections::HashMap;

use bollard::container::{Config, RemoveContainerOptions};
Expand All @@ -11,6 +9,8 @@ use bollard::image::CreateImageOptions;
use anyhow::Result;
use futures::{Future, TryStreamExt};

const TIMEOUT_DURATION: u64 = 3;

pub struct DockerTestRunner {
instance: Docker,
id: String,
Expand Down Expand Up @@ -51,7 +51,7 @@ impl DockerTestRunner {
res = fut => {
res
},
_ = tokio::time::sleep(std::time::Duration::from_secs(3))=> {
_ = tokio::time::sleep(std::time::Duration::from_secs(TIMEOUT_DURATION))=> {
tracing::warn!("timeout");
Ok(())
}
Expand Down

0 comments on commit e03ba8c

Please sign in to comment.