Skip to content
Prev Previous commit
Next Next commit
integrated comment
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
  • Loading branch information
dmartinol committed Aug 29, 2024
commit 24661dfdbe677d99d123507b1a3e541535b7fae9
6 changes: 3 additions & 3 deletions sdk/python/feast/registry_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def start_server(store: FeatureStore, port: int, wait_for_termination: bool = Tr

server = grpc.server(
futures.ThreadPoolExecutor(max_workers=10),
interceptors=grpc_interceptors(auth_manager_type),
interceptors=_grpc_interceptors(auth_manager_type),
)
RegistryServer_pb2_grpc.add_RegistryServerServicer_to_server(
RegistryServer(store.registry), server
Expand All @@ -672,11 +672,11 @@ def start_server(store: FeatureStore, port: int, wait_for_termination: bool = Tr
return server


def grpc_interceptors(
def _grpc_interceptors(
auth_type: AuthManagerType,
) -> Optional[list[grpc.ServerInterceptor]]:
"""
A list of the authorization interceptors.
A list of the interceptors for the registry server.

Args:
auth_type: The type of authorization manager, from the feature store configuration.
Expand Down