diff options
author | Teddy Wing | 2017-11-16 23:53:23 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-16 23:53:23 +0100 |
commit | 01fa452209dcea101809fd1b224e029ae4f4a9d9 (patch) | |
tree | 58b71e389938d4568d56e2deb801129ab0087ec9 | |
parent | 4f8f9fc7497d62385cc4d82c36892587703352f0 (diff) | |
download | kipper-01fa452209dcea101809fd1b224e029ae4f4a9d9.tar.bz2 |
main(): Remove commented `return`
This error handler now lives inside a `thread::spawn()` rather than
inside the HTTP request handler, so we shouldn't return an HTTP response
here.
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 211a680..6bb4594 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,11 +158,7 @@ fn main() { github_token, ) { Ok(_) => {}, - Err(e) => { - error!("{}", e.to_string()); - - // return internal_server_error() - }, + Err(e) => error!("{}", e.to_string()), }; }); |