mirror of
https://github.com/bytedance/g3.git
synced 2026-05-05 23:41:57 +00:00
g3-io-ext: bump MSRV to 1.88
This commit is contained in:
parent
fc48e26c06
commit
6bfed41b83
4 changed files with 8 additions and 7 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1290,7 +1290,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "g3-io-ext"
|
||||
version = "0.8.0"
|
||||
version = "0.9.0"
|
||||
dependencies = [
|
||||
"ahash",
|
||||
"arc-swap",
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ g3-histogram = { version = "0.2", path = "lib/g3-histogram" }
|
|||
g3-http = { version = "0.5", path = "lib/g3-http" }
|
||||
g3-icap-client = { version = "0.4", path = "lib/g3-icap-client" }
|
||||
g3-imap-proto = { version = "0.3", path = "lib/g3-imap-proto" }
|
||||
g3-io-ext = { version = "0.8", path = "lib/g3-io-ext" }
|
||||
g3-io-ext = { version = "0.9", path = "lib/g3-io-ext" }
|
||||
g3-io-sys = { version = "0.1", path = "lib/g3-io-sys" }
|
||||
g3-ip-locate = { version = "0.2", path = "lib/g3-ip-locate" }
|
||||
g3-journal = { version = "0.3", path = "lib/g3-journal" }
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
[package]
|
||||
name = "g3-io-ext"
|
||||
version = "0.8.0"
|
||||
version = "0.9.0"
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
|||
|
|
@ -201,10 +201,10 @@ impl DatagramLimiter {
|
|||
limiter.inner.release_packets(checked - packets);
|
||||
}
|
||||
|
||||
if let Some(checked) = limiter.checked_bytes.take() {
|
||||
if checked > size {
|
||||
limiter.inner.release_bytes(checked - size);
|
||||
}
|
||||
if let Some(checked) = limiter.checked_bytes.take()
|
||||
&& checked > size
|
||||
{
|
||||
limiter.inner.release_bytes(checked - size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue