Skip to content

Commit 991369a

Browse files
committed
feat: fixed lint error (feast-dev#5683)
Signed-off-by: Jacob Weinhold <[email protected]>
1 parent 8fec3cd commit 991369a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎sdk/python/feast/feature_server.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ async def _push_with_to(push_to: PushMode) -> None:
387387

388388
needs_online = to in (PushMode.ONLINE, PushMode.ONLINE_AND_OFFLINE)
389389
needs_offline = to in (PushMode.OFFLINE, PushMode.ONLINE_AND_OFFLINE)
390-
batching_active = offline_batcher is not None and needs_offline
391390

392-
if not batching_active:
391+
if offline_batcher is None or not needs_offline:
393392
await _push_with_to(to)
394393
else:
395394
if needs_online:
@@ -402,7 +401,6 @@ async def _push_with_to(push_to: PushMode) -> None:
402401
transform_on_write=request.transform_on_write,
403402
)
404403

405-
406404
async def _get_feast_object(
407405
feature_view_name: str, allow_registry_cache: bool
408406
) -> FeastObject:

0 commit comments

Comments
 (0)