-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Remove interior mutability of
HealthCheckRegistry
(#258)
Switch to using `OnceLock` to allow setting the health checks on the `AppContext` after it is created. The method to set the health checks is private to the crate, so we have control over when the checks are set on the context. This has some impacts on public-facing APIs: - `App::health_checks` takes a `&mut HealthCheckRegistry` instead of a non-mutable ref - `AppContext::health_checks` returns the list of health checks. (Alternatively, we could have returned an Option) - We also made the `HealthCheckRegistry::new` method non-public. This aligns with the `ServiceRegistry::new` visibility. Closes #257
- Loading branch information
1 parent
bdd9458
commit eee057f
Showing
6 changed files
with
75 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters