Skip to content

Commit

Permalink
Remove flag in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayton Walker committed Mar 13, 2024
1 parent 2ae2349 commit 4f75126
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,35 +372,6 @@ public void setMaxInboundMetadataSize(DataSize maxInboundMetadataSize) {
}
// --------------------------------------------------

private Boolean fullStreamDecompression;
private static final boolean DEFAULT_FULL_STREAM_DECOMPRESSION = false;

/**
* Gets whether full-stream decompression of inbound streams should be enabled.
*
* @return True, if full-stream decompression of inbound streams should be enabled. False otherwise.
*
* @see #setFullStreamDecompression(Boolean)
*/
public boolean isFullStreamDecompression() {
return this.fullStreamDecompression == null ? DEFAULT_FULL_STREAM_DECOMPRESSION : this.fullStreamDecompression;
}

/**
* Sets whether full-stream decompression of inbound streams should be enabled. This will cause the channel's
* outbound headers to advertise support for GZIP compressed streams, and gRPC servers which support the feature may
* respond with a GZIP compressed stream.
*
* @param fullStreamDecompression Whether full stream decompression should be enabled or null to use the fallback.
*
* @see ManagedChannelBuilder#enableFullStreamDecompression()
*/
public void setFullStreamDecompression(final Boolean fullStreamDecompression) {
this.fullStreamDecompression = fullStreamDecompression;
}

// --------------------------------------------------

private NegotiationType negotiationType;
private static final NegotiationType DEFAULT_NEGOTIATION_TYPE = NegotiationType.TLS;

Expand Down Expand Up @@ -530,9 +501,6 @@ public void copyDefaultsFrom(final GrpcChannelProperties config) {
if (this.maxInboundMessageSize == null) {
this.maxInboundMessageSize = config.maxInboundMessageSize;
}
if (this.fullStreamDecompression == null) {
this.fullStreamDecompression = config.fullStreamDecompression;
}
if (this.negotiationType == null) {
this.negotiationType = config.negotiationType;
}
Expand Down

0 comments on commit 4f75126

Please sign in to comment.