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 Feb 8, 2024
1 parent bdf336a commit f4a875a
Showing 1 changed file with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,35 +335,6 @@ public void setMaxInboundMessageSize(final DataSize maxInboundMessageSize) {

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

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 @@ -493,9 +464,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 f4a875a

Please sign in to comment.