From 6ffee89756899d0dbeebadf1462417163da87f95 Mon Sep 17 00:00:00 2001 From: will-x86 Date: Mon, 2 Mar 2026 15:01:24 +0000 Subject: [PATCH 1/3] Quickstart docs fix --- docs/quick_start.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/quick_start.md b/docs/quick_start.md index 329a5be4..a8aa4b47 100644 --- a/docs/quick_start.md +++ b/docs/quick_start.md @@ -19,7 +19,8 @@ cargo new load_balancer In your project's `cargo.toml` file add the following to your dependencies ``` async-trait="0.1" -pingora = { version = "0.3", features = [ "lb" ] } +pingora = { version = "0.7.0", features = ["openssl", "lb"] } + ``` ### Create a pingora server @@ -321,4 +322,4 @@ The full code for this example is available in this repository under Other examples that you may find helpful are also available here [pingora-proxy/examples/](../pingora-proxy/examples/) -[pingora/examples](../pingora/examples/) \ No newline at end of file +[pingora/examples](../pingora/examples/) From 0a643a3fb347626b7007dd1d81acf5ad51e9cdfd Mon Sep 17 00:00:00 2001 From: will-x86 Date: Mon, 2 Mar 2026 15:51:44 +0000 Subject: [PATCH 2/3] Move docs from v0.3 to 0.7 --- docs/user_guide/rate_limiter.md | 5 +++-- pingora-proxy/examples/connection_filter.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/user_guide/rate_limiter.md b/docs/user_guide/rate_limiter.md index 31a6b5a9..dbaab534 100644 --- a/docs/user_guide/rate_limiter.md +++ b/docs/user_guide/rate_limiter.md @@ -5,8 +5,8 @@ Pingora provides a crate `pingora-limits` which provides a simple and easy to us 1. Add the following dependencies to your `Cargo.toml`: ```toml async-trait="0.1" - pingora = { version = "0.3", features = [ "lb" ] } - pingora-limits = "0.3.0" + pingora = { version = "0.7", features = [ "lb", "openssl" ] } + pingora-limits = "0.7.0" once_cell = "1.19.0" ``` 2. Declare a global rate limiter map to store the rate limiter for each client. In this example, we use `appid`. @@ -20,6 +20,7 @@ Pingora provides a crate `pingora-limits` which provides a simple and easy to us ```rust use async_trait::async_trait; use once_cell::sync::Lazy; +use pingora::http::ResponseHeader; use pingora::prelude::*; use pingora_limits::rate::Rate; use std::sync::Arc; diff --git a/pingora-proxy/examples/connection_filter.rs b/pingora-proxy/examples/connection_filter.rs index 1c346c6f..540cc843 100644 --- a/pingora-proxy/examples/connection_filter.rs +++ b/pingora-proxy/examples/connection_filter.rs @@ -49,7 +49,7 @@ struct BlockAllFilter; #[async_trait] impl ConnectionFilter for BlockAllFilter { - async fn should_accept(&self, addr: &std::net::SocketAddr) -> bool { + fn should_accept(&self, addr: &std::net::SocketAddr) -> bool { info!("BLOCKING connection from {} (BlockAllFilter active)", addr); false } From 5f7838c483761e1f55c3cebfc559a2188ff90a72 Mon Sep 17 00:00:00 2001 From: will-x86 Date: Sat, 7 Mar 2026 11:27:20 +0000 Subject: [PATCH 3/3] Update version to 0.8 --- docs/quick_start.md | 2 +- docs/user_guide/rate_limiter.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quick_start.md b/docs/quick_start.md index a8aa4b47..73124866 100644 --- a/docs/quick_start.md +++ b/docs/quick_start.md @@ -19,7 +19,7 @@ cargo new load_balancer In your project's `cargo.toml` file add the following to your dependencies ``` async-trait="0.1" -pingora = { version = "0.7.0", features = ["openssl", "lb"] } +pingora = { version = "0.8.0", features = ["openssl", "lb"] } ``` diff --git a/docs/user_guide/rate_limiter.md b/docs/user_guide/rate_limiter.md index dbaab534..554d23a6 100644 --- a/docs/user_guide/rate_limiter.md +++ b/docs/user_guide/rate_limiter.md @@ -5,8 +5,8 @@ Pingora provides a crate `pingora-limits` which provides a simple and easy to us 1. Add the following dependencies to your `Cargo.toml`: ```toml async-trait="0.1" - pingora = { version = "0.7", features = [ "lb", "openssl" ] } - pingora-limits = "0.7.0" + pingora = { version = "0.8", features = [ "lb", "openssl" ] } + pingora-limits = "0.8.0" once_cell = "1.19.0" ``` 2. Declare a global rate limiter map to store the rate limiter for each client. In this example, we use `appid`.