Skip to content

Commit b12c044

Browse files
authored
Merge pull request #36 from passuied/bug/fix-aio
Make `compression` optional for grpcio as not all versions support it
2 parents 9e8b34b + 9af47b9 commit b12c044

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

durabletask/aio/internal/grpc_interceptor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ def _intercept_call(
4040
metadata = []
4141

4242
metadata.extend(self._metadata)
43+
compression = getattr(client_call_details, "compression", None)
4344
return _ClientCallDetails(
4445
client_call_details.method,
4546
client_call_details.timeout,
4647
metadata,
4748
client_call_details.credentials,
4849
client_call_details.wait_for_ready,
49-
client_call_details.compression,
50+
compression,
5051
)
5152

5253
async def intercept_unary_unary(self, continuation, client_call_details, request):

0 commit comments

Comments
 (0)