Skip to content

Commit

Permalink
build(deps): update h3 requirement from 0.0.2 to 0.0.3 (#2019)
Browse files Browse the repository at this point in the history
Updates the requirements on [h3](https://github.com/hyperium/h3) to permit the latest version.
- [Release notes](https://github.com/hyperium/h3/releases)
- [Changelog](https://github.com/hyperium/h3/blob/master/changelog-h3-quinn.md)
- [Commits](https://github.com/hyperium/h3/commits/h3-v0.0.3)

---
updated-dependencies:
- dependency-name: h3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Nov 17, 2023
1 parent 72a0004 commit 3c368f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quic/s2n-quic-h3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ publish = false
[dependencies]
bytes = { version = "1", default-features = false }
futures = { version = "0.3", default-features = false }
h3 = "0.0.2"
h3 = "0.0.3"
s2n-quic = { path = "../s2n-quic" }
s2n-quic-core = { path = "../s2n-quic-core" }
14 changes: 11 additions & 3 deletions quic/s2n-quic-h3/src/s2n_quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ where
fn stop_sending(&mut self, error_code: u64) {
self.recv.stop_sending(error_code)
}

fn recv_id(&self) -> StreamId {
self.recv.recv_id()
}
}

impl<B> quic::SendStream<B> for BidiStream<B>
Expand All @@ -235,8 +239,8 @@ where
self.send.send_data(data)
}

fn id(&self) -> StreamId {
self.send.id()
fn send_id(&self) -> StreamId {
self.send.send_id()
}
}

Expand Down Expand Up @@ -281,6 +285,10 @@ impl quic::RecvStream for RecvStream {
.expect("s2n-quic supports error codes up to 2^62-1"),
);
}

fn recv_id(&self) -> StreamId {
self.stream.id().try_into().expect("invalid stream id")
}
}

impl From<ReceiveStream> for RecvStream {
Expand Down Expand Up @@ -432,7 +440,7 @@ where
.reset(reset_code.try_into().unwrap_or_else(|_| VarInt::MAX.into()));
}

fn id(&self) -> StreamId {
fn send_id(&self) -> StreamId {
self.stream.id().try_into().expect("invalid stream id")
}
}
Expand Down

0 comments on commit 3c368f1

Please sign in to comment.