Skip to content

Commit

Permalink
prepare actix-web-actors release
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jun 28, 2019
1 parent 7688595 commit 596483f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions actix-web-actors/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [1.0.1] - 2019-06-28

* Allow to use custom ws codec with `WebsocketContext` #925

## [1.0.0] - 2019-05-29

* Update actix-http and actix-web
Expand Down
4 changes: 2 additions & 2 deletions actix-web-actors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-web-actors"
version = "1.0.0"
version = "1.0.1"
authors = ["Nikolay Kim <[email protected]>"]
description = "Actix actors support for actix web framework."
readme = "README.md"
Expand All @@ -19,7 +19,7 @@ path = "src/lib.rs"

[dependencies]
actix = "0.8.3"
actix-web = "1.0.0"
actix-web = "1.0.2"
actix-http = "0.2.4"
actix-codec = "0.1.2"
bytes = "0.4"
Expand Down
12 changes: 8 additions & 4 deletions actix-web-actors/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,14 @@ where

#[inline]
/// Create a new Websocket context from a request, an actor, and a codec
pub fn with_codec<S>(actor: A, stream: S, codec: Codec) -> impl Stream<Item = Bytes, Error = Error>
where
A: StreamHandler<Message, ProtocolError>,
S: Stream<Item = Bytes, Error = PayloadError> + 'static,
pub fn with_codec<S>(
actor: A,
stream: S,
codec: Codec,
) -> impl Stream<Item = Bytes, Error = Error>
where
A: StreamHandler<Message, ProtocolError>,
S: Stream<Item = Bytes, Error = PayloadError> + 'static,
{
let mb = Mailbox::default();
let mut ctx = WebsocketContext {
Expand Down

0 comments on commit 596483f

Please sign in to comment.