Skip to content

Commit

Permalink
fix: Remove top-level grpc import in cli (feast-dev#4107)
Browse files Browse the repository at this point in the history
fix grpc import in cli

Signed-off-by: tokoko <[email protected]>
  • Loading branch information
tokoko authored Apr 17, 2024
1 parent 5c4a9c5 commit 4362b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
)
from feast.errors import FeastObjectNotFoundException, FeastProviderLoginError
from feast.feature_view import FeatureView
from feast.infra.contrib.grpc_server import get_grpc_server
from feast.on_demand_feature_view import OnDemandFeatureView
from feast.repo_config import load_repo_config
from feast.repo_operations import (
Expand Down Expand Up @@ -734,6 +733,8 @@ def listen_command(
registry_ttl_sec: int,
):
"""Start a gRPC feature server to ingest streaming features on given address"""
from feast.infra.contrib.grpc_server import get_grpc_server

store = create_feature_store(ctx)
server = get_grpc_server(address, store, max_workers, registry_ttl_sec)
server.start()
Expand Down

0 comments on commit 4362b6c

Please sign in to comment.