add feature flag to ospf route

This commit is contained in:
sijie.sun
2024-09-21 18:15:47 +08:00
committed by Sijie.Sun
parent 06afd221d5
commit bd60cfc2a0
12 changed files with 124 additions and 43 deletions

View File

@@ -84,6 +84,10 @@ impl ServiceRegistry {
self.table.remove(&key).map(|_| ())
}
pub fn unregister_by_domain(&self, domain_name: &str) {
self.table.retain(|k, _| k.domain_name != domain_name);
}
pub async fn call_method(
&self,
rpc_desc: RpcDescriptor,