From 7d016da2998250629074425cf75f5b2607965615 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sun, 28 May 2023 18:12:12 -0700 Subject: [PATCH] Rename issue_cids to issue_first_cids to better reflect its role --- quinn-proto/src/connection/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quinn-proto/src/connection/mod.rs b/quinn-proto/src/connection/mod.rs index 26df24fc4a..5731e24f24 100644 --- a/quinn-proto/src/connection/mod.rs +++ b/quinn-proto/src/connection/mod.rs @@ -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; @@ -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(()) @@ -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; }