Skip to content

Commit 7d016da

Browse files
committed
Rename issue_cids to issue_first_cids to better reflect its role
1 parent 26b2c37 commit 7d016da

File tree

1 file changed

+4
-4
lines changed
  • quinn-proto/src/connection

1 file changed

+4
-4
lines changed

quinn-proto/src/connection/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ impl Connection {
22922292
.push_back(EndpointEventInner::ResetToken(self.path.remote, token));
22932293
}
22942294
self.handle_peer_params(params)?;
2295-
self.issue_cids(now);
2295+
self.issue_first_cids(now);
22962296
} else {
22972297
// Server-only
22982298
self.spaces[SpaceId::Data].pending.handshake_done = true;
@@ -2339,7 +2339,7 @@ impl Connection {
23392339
reason: "transport parameters missing".into(),
23402340
})?;
23412341
self.handle_peer_params(params)?;
2342-
self.issue_cids(now);
2342+
self.issue_first_cids(now);
23432343
self.init_0rtt();
23442344
}
23452345
Ok(())
@@ -2794,8 +2794,8 @@ impl Connection {
27942794
self.peer_params.stateless_reset_token = Some(reset_token);
27952795
}
27962796

2797-
/// Issue an initial set of connection IDs to the peer
2798-
fn issue_cids(&mut self, now: Instant) {
2797+
/// Issue an initial set of connection IDs to the peer upon connection
2798+
fn issue_first_cids(&mut self, now: Instant) {
27992799
if self.local_cid_state.cid_len() == 0 {
28002800
return;
28012801
}

0 commit comments

Comments
 (0)