cloudflare / pingora

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

Fix quick start guide println #72

Closed zadjadr closed 4 months ago

zadjadr commented 4 months ago

Otherwise you get this error:

error: invalid format string: expected `'}'`, found `'?'`
  --> src/main.rs:21:47
   |
21 |         println!("upstream peer is: {:upstream?}");
   |                                     -         ^ expected `'}'` in format string
   |                                     |
   |                                     because of this opening brace
   |
   = note: if you intended to print `{`, you can escape it using `{{`

error: could not compile `pnginx` (bin "pnginx") due to 1 previous error
1000Delta commented 4 months ago

LGTM

andrewhavck commented 4 months ago

Thanks, we forgot to sync a commit last week that fixed this, it is synced now. Closing.