Skip to content

Commit

Permalink
Rename issue_cids to issue_first_cids to better reflect its role
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Jun 3, 2023
1 parent c540415 commit 6a9ddcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2292,7 +2292,7 @@ impl Connection {
.push_back(EndpointEventInner::ResetToken(self.path.remote, token));
}
self.handle_peer_params(params)?;
self.issue_cids(now);
self.issue_first_cids(now);
} else {
// Server-only
self.spaces[SpaceId::Data].pending.handshake_done = true;
Expand Down Expand Up @@ -2339,7 +2339,7 @@ impl Connection {
reason: "transport parameters missing".into(),
})?;
self.handle_peer_params(params)?;
self.issue_cids(now);
self.issue_first_cids(now);
self.init_0rtt();
}
Ok(())
Expand Down Expand Up @@ -2794,8 +2794,8 @@ impl Connection {
self.peer_params.stateless_reset_token = Some(reset_token);
}

/// Issue an initial set of connection IDs to the peer
fn issue_cids(&mut self, now: Instant) {
/// Issue an initial set of connection IDs to the peer upon connection
fn issue_first_cids(&mut self, now: Instant) {
if self.local_cid_state.cid_len() == 0 {
return;
}
Expand Down

0 comments on commit 6a9ddcd

Please sign in to comment.