Skip to content

Commit

Permalink
Removes unneeded class
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <elena@kolevska.com>
  • Loading branch information
elena-kolevska committed Oct 11, 2024
1 parent 2626f44 commit b04615f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dapr/aio/clients/grpc/interceptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def intercept_unary_unary(self, continuation, client_call_details, request):

return continuation(client_call_details, request)


class DaprClientInterceptorAsync(UnaryUnaryClientInterceptor, StreamStreamClientInterceptor):
"""The class implements a UnaryUnaryClientInterceptor from grpc to add an interceptor to add
additional headers to all calls as needed.
Expand Down Expand Up @@ -135,4 +136,4 @@ async def intercept_stream_stream(self, continuation, client_call_details, reque
new_call_details = await self._intercept_call(client_call_details)
# Call continuation
response = await continuation(new_call_details, request)
return response
return response
1 change: 0 additions & 1 deletion dapr/clients/grpc/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def outgoing_request_iterator():
except Exception as e:
raise Exception(f'Error while initializing stream: {e}')

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

View check run for this annotation

Codecov / codecov/patch

dapr/clients/grpc/subscription.py#L59-L60

Added lines #L59 - L60 were not covered by tests


def reconnect_stream(self):
self.close()
DaprHealth.wait_until_ready()
Expand Down
6 changes: 0 additions & 6 deletions dapr/common/pubsub/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,3 @@ def _parse_data_content(self):

class StreamInactiveError(Exception):
pass


class PubSubEventStatus:
SUCCESS = 'success'
RETRY = 'retry'
DROP = 'drop'

0 comments on commit b04615f

Please sign in to comment.