Skip to content

Commit

Permalink
Un-hide force_key_update / initiate_key_update
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage committed Dec 20, 2024
1 parent afc7d7f commit cb8e839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,9 @@ impl Connection {
self.spaces[self.highest_space].ping_pending = true;
}

#[doc(hidden)]
/// Update traffic keys
///
/// The reason this is public is primarily for testing purposes.
pub fn initiate_key_update(&mut self) {
self.update_keys(None, false);
}
Expand Down
5 changes: 3 additions & 2 deletions quinn/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,9 @@ impl Connection {
self.0.stable_id()
}

// Update traffic keys spontaneously for testing purposes.
#[doc(hidden)]
/// Update traffic keys spontaneously
///
/// This primarily exists for testing purposes.
pub fn force_key_update(&self) {
self.0
.state
Expand Down

0 comments on commit cb8e839

Please sign in to comment.