cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
20.28k stars 1.1k forks source link

docs: fix example in ctx.md #167

Open Abdallah-Zidan opened 3 months ago

Abdallah-Zidan commented 3 months ago

fix check_beta_user function parameter type

eaufavor commented 3 months ago

Both are correct and our current doc in the doc matches the code here.

Abdallah-Zidan commented 3 months ago

Thanks for clarification I think following the guide failed with me because in the shared example Cargo.toml here there is this line

pingora-http = { version = "0.1.0", path = "../pingora-http" } 

but I followed the guide to use these dependencies

[dependencies]
async-trait="0.1"
pingora = { version = "0.1", features = [ "lb" ] }