This commit is contained in:
Xi Yan 2024-10-23 15:19:41 -07:00
parent 07d45f2af3
commit 47d9030542
3 changed files with 8 additions and 12 deletions

View file

@ -35,7 +35,6 @@ def builtin_automatically_routed_apis() -> List[AutoRoutedApiInfo]:
routing_table_api=Api.memory_banks,
router_api=Api.memory,
),
# TODO: re-enable once we have proper checking on builtin routing: Issue #297
AutoRoutedApiInfo(
routing_table_api=Api.datasets,
router_api=Api.datasetio,

View file

@ -288,6 +288,7 @@ def main(
apis_to_serve = set(impls.keys())
for inf in builtin_automatically_routed_apis():
# if we do not serve the corresponding router API, we should not serve the routing table API
if inf.router_api.value not in apis_to_serve:
continue
apis_to_serve.add(inf.routing_table_api.value)