mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
impl MSC2966: register clients dynamically
This commit is contained in:
1 parent
cd0c3886fb
commit
aafc93f6fb
4 files changed
+108
No files matched your search
@@ -45,6 +45,16 @@ impl crate::Service for Service {
|
||||
}
|
||||
|
||||
impl Service {
|
||||
pub fn register_client(&self, client: &Client) -> Result<()> {
|
||||
self
|
||||
.registrar
|
||||
.lock()
|
||||
.expect("lockable registrar")
|
||||
.register_client(client.clone());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn preconfigured() -> Self {
|
||||
Service {
|
||||
registrar: Mutex::new(
|
||||
|
||||
Reference in new issue
Block a user