Skip to content

issue: make_subscriber() doesn't make a subscriber #47

Description

@anguillanneuf

make_subscriber() makes a StreamingPullFuture (while make_async_subscriber() seems like something users are expected to use):

defmake_subscriber(
subscription: SubscriptionPath,
per_partition_flow_control_settings: FlowControlSettings,
callback: MessageCallback,
nack_handler: Optional[NackHandler] =None,
message_transformer: Optional[MessageTransformer] =None,
fixed_partitions: Optional[Set[Partition]] =None,
executor: Optional[ThreadPoolExecutor] =None,
credentials: Optional[Credentials] =None,
client_options: Optional[ClientOptions] =None,
metadata: Optional[Mapping[str, str]] =None,
) ->StreamingPullFuture:

Current:

streaming_pull_future=make_subscriber( subscription_path, per_partition_flow_control_settings=flow_control_settings, callback=callback, )
streaming_pull_future.result(timeout=timeout) 

Expected:

streaming_pull_future=subscriber_client.subscribe( subscription_path, per_partition_flow_control_settings=flow_control_settings, callback=callback, )
streaming_pull_future.result(timeout=timeout) 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions