Optimize OnceServices; simplify init.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -211,7 +211,7 @@ impl Service {
|
||||
.await
|
||||
.expect("Admin module is not loaded");
|
||||
|
||||
handle(Arc::clone(self.services.get_services()), command).await
|
||||
handle(Arc::clone(self.services.get()), command).await
|
||||
}
|
||||
|
||||
/// Checks whether a given user is an admin of this server
|
||||
|
||||
Reference in New Issue
Block a user