Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska committed Oct 21, 2024
1 parent 2ab9a77 commit 9456b53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions dapr/clients/grpc/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def next_message(self):
if not self._is_stream_active() or self._stream is None:
raise StreamInactiveError('Stream is not active')


try:
# Read the next message from the stream directly
message = next(self._stream)
Expand All @@ -94,7 +93,6 @@ def next_message(self):
except Exception as e:
raise Exception(f'Error while fetching message: {e}')

Check warning on line 94 in dapr/clients/grpc/subscription.py

View check run for this annotation

Codecov / codecov/patch

dapr/clients/grpc/subscription.py#L93-L94

Added lines #L93 - L94 were not covered by tests


def respond(self, message, status):
try:
status = appcallback_v1.TopicEventResponse(status=status.value)
Expand Down
1 change: 1 addition & 0 deletions examples/pubsub-streaming/subscriber-handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
topic_name = args.topic
dlq_topic_name = topic_name + '_DEAD'


def process_message(message):
# Process the message here
global counter
Expand Down

0 comments on commit 9456b53

Please sign in to comment.