mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
Fixed typo in docs: connnection => connection
This commit is contained in:
parent
31d7b63ed7
commit
bbef4bdd75
2 changed files with 3 additions and 3 deletions
|
@ -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(),
|
||||
|
|
|
@ -783,7 +783,7 @@ 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
|
||||
|
@ -791,7 +791,7 @@ impl HttpSession {
|
|||
.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
|
||||
|
|
Loading…
Reference in a new issue