update samples

This commit is contained in:
wing328
2020-06-16 11:24:56 +08:00
parent 53eff43184
commit 748190a049
8 changed files with 2 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ sidebar_label: rust-server
| Type/Alias | Instantiated By |
| ---------- | --------------- |
|array|Vec|
|map|Map|
|map|std::collections::HashMap|
## LANGUAGE PRIMITIVES

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml

View File

@@ -669,7 +669,7 @@ impl<S, C> Api<C> for Client<S, C> where
Err(e) => return Err(ApiError(format!("Unable to create X-Span ID header value: {}", e)))
});
let mut response = client_service.call(request)
let mut response = client_service.call((request, context.clone()))
.map_err(|e| ApiError(format!("No response received: {}", e))).await?;
match response.status().as_u16() {

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml

View File

@@ -1,6 +1,5 @@
.cargo/config
.gitignore
.openapi-generator-ignore
Cargo.toml
README.md
api/openapi.yaml