We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00fa8e commit c906c67Copy full SHA for c906c67
1 file changed
examples/microservices/src/main.rs
@@ -109,7 +109,7 @@ mod gateway {
109
async fn proxy_get_user(Path(id): Path<u64>) -> Json<GatewayResponse> {
110
let client = reqwest::Client::new();
111
let user: User = client
112
- .get(&format!("http://127.0.0.1:8081/users/{}", id))
+ .get(format!("http://127.0.0.1:8081/users/{}", id))
113
.send()
114
.await
115
.unwrap()
@@ -127,7 +127,7 @@ mod gateway {
127
async fn proxy_get_order(Path(id): Path<u64>) -> Json<GatewayResponse> {
128
129
let order: Order = client
130
- .get(&format!("http://127.0.0.1:8082/orders/{}", id))
+ .get(format!("http://127.0.0.1:8082/orders/{}", id))
131
132
133
0 commit comments