Skip to content

Commit e12eb33

Browse files
committed
bump socket2 0.6
1 parent 1eb8874 commit e12eb33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "awak"
3-
version = "0.2.36"
3+
version = "0.2.37"
44
authors = ["cssivision <cssivision@gmail.com>"]
55
license = "MIT"
66
repository = "https://github.com/cssivision/awak"
@@ -10,10 +10,10 @@ edition = "2018"
1010

1111
[dependencies]
1212
async-task = "4.0"
13-
rand = "0.8"
13+
rand = "0.9"
1414
libc = "0.2"
1515
slab = "0.4"
16-
socket2 = { version = "0.5", features = ["all"] }
16+
socket2 = { version = "0.6", features = ["all"] }
1717
cfg-if = "1"
1818
pin-project-lite = "0.2"
1919
futures-io = "0.3"

src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ impl Ticker {
301301

302302
// Pick a random starting point in the iterator list and rotate the list.
303303
let n = local_queues.iter().count();
304-
let start = rand::thread_rng().gen_range(0..n);
304+
let start = rand::rng().random_range(0..n);
305305
let iter = local_queues
306306
.iter()
307307
.chain(local_queues.iter())

0 commit comments

Comments
 (0)