Skip to content

Commit

Permalink
fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: battmdpkq <[email protected]>
Replicated-from: #123
Includes-commit: 943bedb
  • Loading branch information
battmdpkq authored and andrewhavck committed Mar 11, 2024
1 parent 461ddae commit 7a65192
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c3ec53f03ed27ce7ce90ec76e9ae67bab2097fd3
deb3c5409e938ec9c7d0da9b7a2d331eabbb2cd5
2 changes: 1 addition & 1 deletion pingora-cache/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl HandleHit for MemHitHandler {
pub struct MemMissHandler {
body: Arc<RwLock<Vec<u8>>>,
bytes_written: Arc<watch::Sender<PartialState>>,
// these are used only in finish() to to data from temp to cache
// these are used only in finish() to data from temp to cache
key: String,
cache: Arc<RwLock<HashMap<String, CacheObject>>>,
temp: Arc<RwLock<HashMap<String, TempObject>>>,
Expand Down
2 changes: 1 addition & 1 deletion pingora-load-balancing/src/health_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait HealthCheck {
/// This function defines how many *consecutive* checks should flip the health of a backend.
///
/// For example: with `success``: `true`: this function should return the
/// number of check need to to flip from unhealthy to healthy.
/// number of check need to flip from unhealthy to healthy.
fn health_threshold(&self, success: bool) -> usize;
}

Expand Down
2 changes: 1 addition & 1 deletion pingora-proxy/src/proxy_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions pingora-proxy/src/proxy_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7a65192

Please sign in to comment.