diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-17 00:09:46 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-17 00:09:46 -0700 |
commit | 6aee40ac9538f9391c9e630efddf4b39fdad5a50 (patch) | |
tree | 1f8964407f78e8379e4dbbac3ee4ef117ae5b7f4 /rust/fatcat-api/examples/server_lib/server.rs | |
parent | 0f6ac22fee0332627ef86f10306d67b997396b61 (diff) | |
download | fatcat-6aee40ac9538f9391c9e630efddf4b39fdad5a50.tar.gz fatcat-6aee40ac9538f9391c9e630efddf4b39fdad5a50.zip |
fix api spec
Diffstat (limited to 'rust/fatcat-api/examples/server_lib/server.rs')
-rw-r--r-- | rust/fatcat-api/examples/server_lib/server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/fatcat-api/examples/server_lib/server.rs b/rust/fatcat-api/examples/server_lib/server.rs index 42b6384f..b81af0f8 100644 --- a/rust/fatcat-api/examples/server_lib/server.rs +++ b/rust/fatcat-api/examples/server_lib/server.rs @@ -66,9 +66,9 @@ impl Api for Server { Box::new(futures::failed("Generic failure".into())) } - fn editgroup_post(&self, context: &Context) -> Box<Future<Item = EditgroupPostResponse, Error = ApiError> + Send> { + fn editgroup_post(&self, body: models::Editgroup, context: &Context) -> Box<Future<Item = EditgroupPostResponse, Error = ApiError> + Send> { let context = context.clone(); - println!("editgroup_post() - X-Span-ID: {:?}", context.x_span_id.unwrap_or(String::from("<none>")).clone()); + println!("editgroup_post({:?}) - X-Span-ID: {:?}", body, context.x_span_id.unwrap_or(String::from("<none>")).clone()); Box::new(futures::failed("Generic failure".into())) } |