Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
formatted the lib (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksmtownsend authored Mar 4, 2021
1 parent 87c0fbf commit df9c5b1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions extras/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ use wasmcloud_actor_http_server as http;

#[actor::init]
fn init() {
http::Handlers::register_handle_request(display_extras);
http::Handlers::register_handle_request(display_extras);
}

fn display_extras(_payload: http::Request) -> HandlerResult<http::Response> {
let extras = extras::default();
let extras = extras::default();

let result = json!(
{ "random": extras.request_random(0, 100)?,
"guid" : extras.request_guid()?,
"sequence": extras.request_sequence()?,
});
Ok(http::Response::json(result, 200, "OK"))
let result = json!(
{ "random": extras.request_random(0, 100)?,
"guid" : extras.request_guid()?,
"sequence": extras.request_sequence()?,
});
Ok(http::Response::json(result, 200, "OK"))
}

0 comments on commit df9c5b1

Please sign in to comment.