Skip to content

Commit

Permalink
remove is instance check
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Feb 21, 2025
1 parent ea0a902 commit 0e66862
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions waypoint/services/nats_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,9 @@ async def pull_subscribe():
config=config, **subscribe_kwargs
)

consumer_info = await subscription.consumer_info()
if isinstance(consumer_info, ConsumerInfo):
bound_logger.trace(
"Consumer is ready {}, {}",
consumer_info.name,
consumer_info.stream_name,
)
# Get consumer info to verify that the subscription was successful
# TODO test if this is necessary

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

TODO test if this is necessary Note

TODO test if this is necessary
await subscription.consumer_info()

bound_logger.debug("Successfully subscribed to JetStream")
return subscription
Expand Down

0 comments on commit 0e66862

Please sign in to comment.