Skip to content
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

golem-component-compilation-service - fix #492

Merged
merged 2 commits into from
May 10, 2024
Merged

Conversation

justcoon
Copy link
Contributor

No description provided.

@@ -91,6 +91,8 @@ async fn run(config: ServerConfig, prometheus: Registry) -> Result<(), Box<dyn s

info!("Server started on port {}", config.grpc_port);

drop(http_server); // explicitly keeping it alive until the end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like using explicit drop, just want to inform you that in other places in code we are using _ prefix instead of explicit drop (let _http_server = ...). Rust keeps all names variables alive till the end of code block.

@justcoon justcoon merged commit 01c9db9 into main May 10, 2024
6 checks passed
@justcoon justcoon deleted the compilation_service_fix branch May 10, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants