mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
replace comment on services with a doc comment
The previous comment is pretty self-evident and also misunderstands async closures.
This commit is contained in:
parent
94978b95a6
commit
592dee368d
1 changed files with 1 additions and 3 deletions
|
|
@ -61,9 +61,7 @@ static GLOBAL: Jemalloc = Jemalloc;
|
|||
|
||||
pub(crate) static SERVICES: RwLock<Option<&'static Services>> = RwLock::new(None);
|
||||
|
||||
// Not async due to services() being used in many closures, and async closures are not stable as of writing
|
||||
// This is the case for every other occurence of sync Mutex/RwLock, except for database related ones, where
|
||||
// the previous maintainer has asked to not modify those
|
||||
/// Convenient access to the global [`Services`] instance
|
||||
pub(crate) fn services() -> &'static Services {
|
||||
SERVICES
|
||||
.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue