Skip to content

Commit 7e10b77

Browse files
committed
Upgrade to ntex 0.5.0 b.2
1 parent cd17426 commit 7e10b77

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changes
22

3+
## [0.3.0-b.1] - 2021-12-xx
4+
5+
* Upgrade to ntex 0.5.0 b.2
6+
37
## [0.3.0-b.0] - 2021-12-19
48

5-
* upgrade to ntex 0.5
9+
* Upgrade to ntex 0.5
610

711
## [0.2.4] - 2021-12-02
812

Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ntex-redis"
3-
version = "0.3.0-b.0"
3+
version = "0.3.0-b.1"
44
authors = ["ntex contributors <[email protected]>"]
55
description = "Redis client"
66
documentation = "https://docs.rs/ntex-redis"
@@ -21,7 +21,7 @@ openssl = ["ntex/openssl"]
2121
rustls = ["ntex/rustls"]
2222

2323
[dependencies]
24-
ntex = "0.5.0-b.1"
24+
ntex = "0.5.0-b.2"
2525
itoa = "0.4.5"
2626
btoi = "0.4.2"
2727
log = "0.4"
@@ -30,3 +30,8 @@ derive_more = "0.99"
3030
[dev-dependencies]
3131
rand = "0.8"
3232
env_logger = "0.9"
33+
34+
[patch.crates-io]
35+
ntex = { git = "https://github.com/ntex-rs/ntex.git" }
36+
ntex-io = { git = "https://github.com/ntex-rs/ntex.git" }
37+
ntex-tls = { git = "https://github.com/ntex-rs/ntex.git" }

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Client {
2929
let queue2 = queue.clone();
3030
ntex::rt::spawn(async move {
3131
poll_fn(|cx| loop {
32-
match ready!(io.poll_read_next(&Codec, cx)) {
32+
match ready!(io.poll_recv(&Codec, cx)) {
3333
Some(Ok(item)) => {
3434
if let Some(tx) = queue2.borrow_mut().pop_front() {
3535
let _ = tx.send(Ok(item));

src/simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl SimpleClient {
2424
{
2525
self.io.encode(cmd.to_request(), &Codec)?;
2626

27-
poll_fn(|cx| match ready!(self.io.poll_read_next(&Codec, cx)) {
27+
poll_fn(|cx| match ready!(self.io.poll_recv(&Codec, cx)) {
2828
Some(Ok(item)) => Poll::Ready(U::to_output(
2929
item.into_result().map_err(CommandError::Error)?,
3030
)),

0 commit comments

Comments
 (0)