aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src
diff options
context:
space:
mode:
authorbattmdpkq <[email protected]>2024-03-08 02:52:27 +0000
committerEdward Wang <[email protected]>2024-03-15 14:37:56 -0700
commit8a84b24ad061c40583b7d90b38296805fbb1b1ef (patch)
treeebb6ba9baebd31a4987c909095d93e09188ea319 /pingora-proxy/src
parent8963575ed23533daaed67ccbe68bdd08051bef88 (diff)
downloadpingora-8a84b24ad061c40583b7d90b38296805fbb1b1ef.tar.gz
pingora-8a84b24ad061c40583b7d90b38296805fbb1b1ef.zip
fix some comments
Signed-off-by: battmdpkq <[email protected]> Replicated-from: https://github.com/cloudflare/pingora/pull/123 Includes-commit: 943bedb2811dc9a2b9b31c2f3576aa7cd2cb8f90
Diffstat (limited to 'pingora-proxy/src')
-rw-r--r--pingora-proxy/src/proxy_cache.rs2
-rw-r--r--pingora-proxy/src/proxy_trait.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/pingora-proxy/src/proxy_cache.rs b/pingora-proxy/src/proxy_cache.rs
index 4546b58..f40e083 100644
--- a/pingora-proxy/src/proxy_cache.rs
+++ b/pingora-proxy/src/proxy_cache.rs
@@ -85,7 +85,7 @@ impl<SV> HttpProxy<SV> {
if let Some((mut meta, handler)) = res {
// vary logic
// because this branch can be called multiple times in a loop, and we only
- // need to to update the vary once, check if variance is already set to
+ // need to update the vary once, check if variance is already set to
// prevent unnecessary vary lookups
let cache_key = session.cache.cache_key();
if let Some(variance) = cache_key.variance_bin() {
diff --git a/pingora-proxy/src/proxy_trait.rs b/pingora-proxy/src/proxy_trait.rs
index 042dbd4..8293a24 100644
--- a/pingora-proxy/src/proxy_trait.rs
+++ b/pingora-proxy/src/proxy_trait.rs
@@ -18,7 +18,7 @@ use pingora_cache::{key::HashBinary, CacheKey, CacheMeta, RespCacheable, RespCac
/// The interface to control the HTTP proxy
///
/// The methods in [ProxyHttp] are filters/callbacks which will be performed on all requests at their
-/// paticular stage (if applicable).
+/// particular stage (if applicable).
///
/// If any of the filters returns [Result::Err], the request will fail and the error will be logged.
#[cfg_attr(not(doc_async_trait), async_trait)]
@@ -264,7 +264,7 @@ pub trait ProxyHttp {
///
/// If the error can be retried, [Self::upstream_peer()] will be called again so that the user
/// can decide whether to send the request to the same upstream or another upstream that is possibly
- /// avaliable.
+ /// available.
fn fail_to_connect(
&self,
_session: &mut Session,