-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: clean up parts of the codebase #981
base: main
Are you sure you want to change the base?
Conversation
// Create the HTTP server | ||
let http_server = HttpServer::new(create_app_fn) | ||
.workers(num_cpus::get()) | ||
.shutdown_timeout(60); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should be shutdown timeout?
// Create the HTTP server | ||
let http_server = HttpServer::new(create_app_fn) | ||
.workers(num_cpus::get()) | ||
.shutdown_timeout(60); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
60 here
// Create the HTTP server | ||
let http_server = HttpServer::new(create_app_fn) | ||
.workers(num_cpus::get()) | ||
.shutdown_timeout(120); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
120 here
// Create the HTTP server | ||
let http_server = HttpServer::new(create_app_fn) | ||
.workers(num_cpus::get()) | ||
.shutdown_timeout(60); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What'd be the right value?
Fixes #XXXX.
Description
I am trying to figure out the codebase and applying some refactors that are focused at improving the readability and DRYing.
This PR has: