Skip to content

Commit

Permalink
Bump state from 0.5.3 to 0.6.0 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Oct 16, 2023
1 parent 002dbbb commit acefa04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clash_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ async-recursion = "1"
ipnet = "2.5"
url = "2.2"
regex = "1"
state = "0.5"
byteorder = "1.5"
state = "0.6"
lru_time_cache = "0.11"
hyper = { version = "0.14", features = ["http1","http2","client", "server", "tcp"] }
http = { version = "0.2" }
Expand Down
5 changes: 2 additions & 3 deletions clash_lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#[macro_use]
extern crate anyhow;
extern crate core;

use crate::app::dispatcher::Dispatcher;
use crate::app::dns;
Expand All @@ -18,7 +17,7 @@ use common::http::new_http_client;
use common::mmdb;
use config::def::LogLevel;
use proxy::tun::get_tun_runner;
use state::Storage;
use state::InitCell;
use std::io;
use std::path::PathBuf;
use tokio::task::JoinHandle;
Expand Down Expand Up @@ -87,7 +86,7 @@ pub struct RuntimeController {
shutdown_tx: mpsc::Sender<()>,
}

static RUNTIME_CONTROLLER: Storage<std::sync::RwLock<RuntimeController>> = Storage::new();
static RUNTIME_CONTROLLER: InitCell<std::sync::RwLock<RuntimeController>> = InitCell::new();

pub fn start(opts: Options) -> Result<(), Error> {
let rt = match opts.rt.as_ref().unwrap_or(&TokioRuntime::MultiThread) {
Expand Down

0 comments on commit acefa04

Please sign in to comment.