1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

Follow upstream change wrt. FramedWrite

This commit is contained in:
Yuki Okushi 2020-05-17 11:08:46 +09:00
parent fee78223a9
commit ecc774450f
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
3 changed files with 11 additions and 7 deletions

View File

@ -2,10 +2,14 @@
## [Unreleased]
* Added `cookie_http_only` functionality to RedisSession builder, setting this
* Add `cookie_http_only` functionality to RedisSession builder, setting this
to false allows JavaScript to access cookies. Defaults to true.
* Changed type of parameter of ttl method to u32.
* Change type of parameter of ttl method to u32.
* Update `actix` to 0.10.0-alpha.3
* Update `tokio-util` to 0.3
## [0.9.0-alpha.1]

View File

@ -24,7 +24,7 @@ default = ["web"]
web = ["actix-http/actors", "actix-service", "actix-web", "actix-session/cookie-session", "rand", "serde", "serde_json"]
[dependencies]
actix = "0.10.0-alpha.2"
actix = "0.10.0-alpha.3"
actix-utils = "1.0.3"
log = "0.4.6"
@ -35,11 +35,11 @@ redis-async = "0.6.1"
actix-rt = "1.0.0"
time = "0.2.9"
tokio = "0.2.6"
tokio-util = "0.2.0"
tokio-util = "0.3.0"
# actix-session
actix-web = { version = "3.0.0-alpha.1", optional = true }
actix-http = { version = "2.0.0-alpha.2", optional = true }
actix-web = { version = "3.0.0-alpha.2", optional = true }
actix-http = { version = "2.0.0-alpha.3", optional = true }
actix-service = { version = "1.0.0", optional = true }
actix-session = { version = "0.4.0-alpha.1", optional = true }
rand = { version = "0.7.0", optional = true }

View File

@ -27,7 +27,7 @@ impl Message for Command {
pub struct RedisActor {
addr: String,
backoff: ExponentialBackoff,
cell: Option<actix::io::FramedWrite<WriteHalf<TcpStream>, RespCodec>>,
cell: Option<actix::io::FramedWrite<RespValue, WriteHalf<TcpStream>, RespCodec>>,
queue: VecDeque<oneshot::Sender<Result<RespValue, Error>>>,
}