fix config w/ safety

This commit is contained in:
Xi Yan 2024-09-22 23:27:04 -07:00
parent 4586692dee
commit 1ac188e1b3
4 changed files with 28 additions and 5 deletions

View file

@ -23,6 +23,7 @@ class CommonRoutingTableImpl(RoutingTable):
routing_table_config: Dict[str, List[RoutableProviderConfig]],
) -> None:
self.providers = {k: v for k, v in inner_impls}
print("routing table providers", self.providers)
self.routing_keys = list(self.providers.keys())
self.routing_table_config = routing_table_config