Skip to content

Commit c906c67

Browse files
committed
Update main.rs
1 parent a00fa8e commit c906c67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/microservices/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ mod gateway {
109109
async fn proxy_get_user(Path(id): Path<u64>) -> Json<GatewayResponse> {
110110
let client = reqwest::Client::new();
111111
let user: User = client
112-
.get(&format!("http://127.0.0.1:8081/users/{}", id))
112+
.get(format!("http://127.0.0.1:8081/users/{}", id))
113113
.send()
114114
.await
115115
.unwrap()
@@ -127,7 +127,7 @@ mod gateway {
127127
async fn proxy_get_order(Path(id): Path<u64>) -> Json<GatewayResponse> {
128128
let client = reqwest::Client::new();
129129
let order: Order = client
130-
.get(&format!("http://127.0.0.1:8082/orders/{}", id))
130+
.get(format!("http://127.0.0.1:8082/orders/{}", id))
131131
.send()
132132
.await
133133
.unwrap()

0 commit comments

Comments
 (0)