Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Sep 26, 2023
1 parent be43524 commit eed5736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/quic_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ impl QuicConnectionPool {
// pefer getting connection that were already established
for (index, sem) in self.transactions_in_sending_semaphore.iter().enumerate() {
let connection = &self.connections[index];
if connection.has_connected_atleast_once() || connection.is_connected().await {
// if it is connection is not yet created or connection is still open
if !connection.has_connected_atleast_once() || connection.is_connected().await {
// if it is connection is not yet connected even once or connection is still open
if let Ok(permit) = sem.clone().try_acquire_owned() {
return Ok((permit, index));
}
Expand Down

0 comments on commit eed5736

Please sign in to comment.