Quickstart docs fix - pingora version number failing over v0.3#828
Quickstart docs fix - pingora version number failing over v0.3#828will-x86 wants to merge 3 commits intocloudflare:mainfrom
Conversation
|
As my commit introduced a version change ( v0.3 -> v0.7) I figured I'd take a look and see if that broke any other examples. I tested: ( all on pingora v0.7)
1docs/user_guide/rate_limiter.md link async-trait="0.1"
pingora = { version = "0.3", features = [ "lb" ] }
pingora-limits = "0.3.0"
once_cell = "1.19.0"Which will lead to same failure if using version over 0.3. Additionally the example code here leads to a compile-time error, though a minor error, the current docs still fail More infoCargo.toml: [dependencies]
async-trait="0.1"
pingora = { version = "0.3", features = [ "lb" ] }
pingora-limits = "0.3.0"
once_cell = "1.19.0"
2pingora-proxy/examples/connection_filter.rs link This fails to compile under version 0.7, due to: Fixed via changing from async fn should_accept(&self, addr: &std::net::SocketAddr) -> bool {to fn should_accept(&self, addr: &std::net::SocketAddr) -> bool {Please let me know what's more preferred, I assume updating all the docs is the right way to go, I'll add a commit that fixes these issues if needed. |
drcaramelsyrup
left a comment
There was a problem hiding this comment.
LGTM aside from the version update.
|
Version is updated to 0.8.0 |
Quickstart documentation uses v0.3, and suggests adding via:
If using any later version than v0.3 (i.e., v0.4...0.7) then the quick start example silently fails. ( as needs "openssl" feature)
Reproducing
Expected results
Expected curl output as such:Observed results
Even running with RUST_LOG=TRACE no errors are logged.
More context
Upon using the quickstart docs, I saw that the latest release was 0.7.0 & decided to run:
which lead to:
My initial debugging lead me to #61 which assumes it's an intentional 502 as 127... ( a non-existent proxy) is used in the later example in quick start docs.
Solution
Change quickstart docs to have:
or
Admittedly this is a niche use-case, but seems like something that as realistically happened to others.