Skip to content

Commit

Permalink
[Issue open-telemetry#1107] Change doc-string for compression argumen…
Browse files Browse the repository at this point in the history
…t and modify Enum value from DEFAULT to NO_COMPRESSION
  • Loading branch information
wilguo committed Sep 24, 2020
1 parent 5847ac2 commit a88df17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@


class GRPCCompression(enum.Enum):
DEFAULT = 0
NO_COMPRESSION = 0
GZIP = 1


Expand Down Expand Up @@ -138,14 +138,14 @@ def __init__(
endpoint: str = "localhost:55680",
credentials: ChannelCredentials = None,
metadata: Optional[Tuple[Any]] = None,
compression: enum.Enum = GRPCCompression.DEFAULT,
compression: GRPCCompression = GRPCCompression.NO_COMPRESSION,
):
super().__init__()

self._metadata = metadata
self._collector_span_kwargs = None

if compression is GRPCCompression.DEFAULT:
if compression is GRPCCompression.NO_COMPRESSION:
compression_algorithm = Compression.NoCompression
elif compression is GRPCCompression.GZIP:
compression_algorithm = Compression.Gzip
Expand Down

0 comments on commit a88df17

Please sign in to comment.