Skip to content

Commit

Permalink
Make the naming consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Dec 17, 2024
1 parent 85d10c9 commit c7986fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/hopsworks_common/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def g(*args, **kwds):

return g

def uses_kafka(f):
def uses_confluent_kafka(f):
@functools.wraps(f)
def g(*args, **kwds):
if not HAS_CONFLUENT_KAFKA:
Expand Down
10 changes: 5 additions & 5 deletions python/hsfs/core/kafka_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from hopsworks_common import client
from hopsworks_common.core.constants import HAS_NUMPY
from hopsworks_common.decorators import uses_kafka
from hopsworks_common.decorators import uses_confluent_kafka
from hsfs.core import storage_connector_api
from hsfs.core.constants import (
HAS_AVRO,
Expand Down Expand Up @@ -55,7 +55,7 @@
from hsfs.feature_group import ExternalFeatureGroup, FeatureGroup


@uses_kafka
@uses_confluent_kafka
def init_kafka_consumer(
feature_store_id: int,
offline_write_options: Dict[str, Any],
Expand Down Expand Up @@ -122,7 +122,7 @@ def _init_kafka_resources(
return producer, headers, feature_writers, writer


@uses_kafka
@uses_confluent_kafka
def init_kafka_producer(
feature_store_id: int,
offline_write_options: Dict[str, Any],
Expand All @@ -131,7 +131,7 @@ def init_kafka_producer(
return Producer(get_kafka_config(feature_store_id, offline_write_options))


@uses_kafka
@uses_confluent_kafka
def kafka_get_offsets(
topic_name: str,
feature_store_id: int,
Expand Down Expand Up @@ -259,7 +259,7 @@ def get_kafka_config(
return config


@uses_kafka
@uses_confluent_kafka
def build_ack_callback_and_optional_progress_bar(
n_rows: int, is_multi_part_insert: bool, offline_write_options: Dict[str, Any]
) -> Tuple[Callable, Optional[tqdm]]:
Expand Down

0 comments on commit c7986fe

Please sign in to comment.