Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrooksCunningham committed Sep 13, 2024
1 parent eb1f62a commit d03aa88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ fn handle_test(req: Request, chan: &str) -> Response {
}

fn main() -> Result<(), Error> {
// Log service version
println!(
"FASTLY_SERVICE_VERSION: {}",
std::env::var("FASTLY_SERVICE_VERSION").unwrap_or_else(|_| String::new())
);

let client_req = Request::from_client();

// Request is a test request - from client, or from Fanout
Expand All @@ -42,8 +48,6 @@ fn main() -> Result<(), Error> {
}
}



let mut server_resp = handler(client_req)?;

match server_resp.get_header_str("action-tarpit") {
Expand Down

0 comments on commit d03aa88

Please sign in to comment.