mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-04 01:54:04 +01:00
On unregister_appservice(service_name), remove the appservice service_name from cache too
This commit is contained in:
parent
b6c9582cf4
commit
7f2445be6c
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ impl Appservice {
|
||||||
pub fn unregister_appservice(&self, service_name: &str) -> Result<()> {
|
pub fn unregister_appservice(&self, service_name: &str) -> Result<()> {
|
||||||
self.id_appserviceregistrations
|
self.id_appserviceregistrations
|
||||||
.remove(service_name.as_bytes())?;
|
.remove(service_name.as_bytes())?;
|
||||||
|
self.cached_registrations.
|
||||||
|
write().
|
||||||
|
unwrap().
|
||||||
|
remove(service_name);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue