Skip to content

Commit a7821ff

Browse files
committed
proto: fix compatibility with older quinn
1 parent 9430972 commit a7821ff

File tree

1 file changed

+7
-0
lines changed
  • quinn-proto/src/connection

1 file changed

+7
-0
lines changed

quinn-proto/src/connection/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,13 @@ impl Connection {
12401240
self.update_keys(None, false);
12411241
}
12421242

1243+
// Compatibility wrapper for quinn < 0.11.7. Remove for 0.12.
1244+
#[doc(hidden)]
1245+
#[deprecated]
1246+
pub fn initiate_key_update(&mut self) {
1247+
self.force_key_update();
1248+
}
1249+
12431250
/// Get a session reference
12441251
pub fn crypto_session(&self) -> &dyn crypto::Session {
12451252
&*self.crypto

0 commit comments

Comments
 (0)