Skip to content

Commit

Permalink
tokio升级到1.28.1。在1.28中进行了一个优化 tokio-rs/tokio/pull/5503 在task notify时,使…
Browse files Browse the repository at this point in the history
…用atomic替代锁
  • Loading branch information
icycrystal4 committed May 17, 2023
1 parent 89f9397 commit 99c06dc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ codegen-units = 256


[workspace.dependencies]
tokio = { version = "1.27.0", features = ["rt", "fs", "net", "rt-multi-thread", "time"], default-features = false }
tokio = { version = "1.28.1", features = ["rt", "fs", "net", "rt-multi-thread", "time"], default-features = false }
serde = { version = "1.0.126", features = ["derive"], default-features = false }
async-trait = "0.1.68"
4 changes: 2 additions & 2 deletions discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ds = { path = "../ds" }
metrics = { path = "../metrics" }

url = "2.2.2"
async-trait = "0.1.51"
async-trait.workspace = true
enum_dispatch = "0.3.8"

#for http request and json parse
Expand All @@ -21,7 +21,7 @@ tokio.workspace = true
json = "0.12.4"

#for deserialize
serde = { version = "1.0.126", features = ["derive"] }
serde.workspace = true
serde_derive = "1.0.126"
serde_yaml = "0.8.17"
serde_json = "1.0.65"
Expand Down
6 changes: 3 additions & 3 deletions discovery/src/vintage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ use std::{
};

use reqwest::Client;
use serde::{Deserialize, Serialize};
use serde::Deserialize;
use url::Url;

#[derive(Clone)]
pub struct Vintage {
client: Client,
}

#[derive(Serialize, Deserialize, Debug)]
#[derive(Deserialize)]
struct Node {
index: String,
data: String,
}

#[derive(Serialize, Deserialize, Debug)]
#[derive(Deserialize)]
struct Response {
message: String,
node: Node,
Expand Down
2 changes: 1 addition & 1 deletion endpoint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ rt = { path = "../rt" }
byteorder = "1.4.3"
bytes = "1.0.1"
tokio.workspace = true
serde.workspace = true

enum_dispatch = "0.3.8"
serde = { version = "1.0.126", features = ["derive"] }
serde_derive = "1.0.126"
serde_yaml = "0.8.17"
serde_json = "1.0.65"
Expand Down
2 changes: 1 addition & 1 deletion net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1.51"
async-trait.workspace = true
tokio.workspace = true

0 comments on commit 99c06dc

Please sign in to comment.