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

Add healthcheck endpoint #258

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Add healthcheck endpoint #258

merged 1 commit into from
Oct 30, 2024

Conversation

sksat
Copy link
Member

@sksat sksat commented Oct 30, 2024

SSIA

@sksat sksat added the enhancement New feature or request label Oct 30, 2024
@sksat sksat self-assigned this Oct 30, 2024
@sksat sksat enabled auto-merge October 30, 2024 08:12
@sksat sksat changed the base branch from main to update-actix-web October 30, 2024 10:20
@sksat sksat merged commit e5075aa into update-actix-web Oct 30, 2024
1 check passed
@sksat sksat deleted the add-healthcheck branch October 30, 2024 10:20
@sksat
Copy link
Member Author

sksat commented Oct 30, 2024

あ、ミスった

@@ -199,6 +199,7 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(Arc::new(cfg.clone()))) // memo: https://github.com/actix/actix-web/issues/1454#issuecomment-867897725
.app_data(web::Data::new(Arc::new(opt.clone())))
.service(web::resource("/webhook").route(web::post().to(webhook)))
.service(web::resource("/healthcheck").route(web::get().to(|| HttpResponse::Ok())))

Choose a reason for hiding this comment

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

⚠️ [clippy] clippy::redundant_closure reported by reviewdog 🐶
redundant closure

@sksat sksat mentioned this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant