Skip to content

Commit

Permalink
Fix type recursion limit (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 authored Nov 7, 2024
1 parent cf70020 commit b0e30b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [1.4.1] - 2024-11-07

* Fix type recursion limit

## [1.4.0] - 2024-11-04

* Use updated Service trait
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-h2"
version = "1.4.0"
version = "1.4.1"
license = "MIT OR Apache-2.0"
authors = ["Nikolay Kim <[email protected]>"]
description = "An HTTP/2 client and server"
Expand Down
4 changes: 2 additions & 2 deletions src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ where
fn handle_connection_error(&self, streams: HashMap<StreamId, StreamRef>, err: OperationError) {
if !streams.is_empty() {
let inner = self.inner.clone();
let _ = spawn(async move {
let _ = spawn(Box::pin(async move {
let p = Pipeline::new(&inner.publish);
let futs = streams
.into_values()
.map(|stream| p.call(Message::disconnect(err.clone(), stream)));
let _ = join_all(futs).await;
});
}));
}
}
}
Expand Down

0 comments on commit b0e30b3

Please sign in to comment.