Skip to content

Commit

Permalink
Fixed typo in docs: connnection => connection
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Jun 10, 2024
1 parent 31d7b63 commit bbef4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pingora-core/src/protocols/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl Session {
}
}

/// Return the client (peer) address of the connnection.
/// Return the client (peer) address of the connection.
pub fn client_addr(&self) -> Option<&SocketAddr> {
match self {
Self::H1(s) => s.client_addr(),
Expand Down
4 changes: 2 additions & 2 deletions pingora-core/src/protocols/http/v1/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,15 +783,15 @@ impl HttpSession {
&self.digest
}

/// Return the client (peer) address of the underlying connnection.
/// Return the client (peer) address of the underlying connection.
pub fn client_addr(&self) -> Option<&SocketAddr> {
self.digest()
.socket_digest
.as_ref()
.map(|d| d.peer_addr())?
}

/// Return the server (local) address of the underlying connnection.
/// Return the server (local) address of the underlying connection.
pub fn server_addr(&self) -> Option<&SocketAddr> {
self.digest()
.socket_digest
Expand Down

0 comments on commit bbef4bd

Please sign in to comment.