Skip to content

Commit d44e4de

Browse files
committed
Give space between customizer ordering
Changes the compressor and decompressor customizer order attributes from `1` and `2` to `5` and `10` to give some breathing room in case users need to order before or after either of them. See #359 Signed-off-by: onobc <chris.bono@gmail.com>
1 parent 54a8c34 commit d44e4de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-grpc-client-spring-boot-autoconfigure/src/main/java/org/springframework/boot/grpc/client/autoconfigure/GrpcClientAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public final class GrpcClientAutoConfiguration {
5858
* compressionClientCustomizer} used to set the compressor registry on the channel
5959
* builder.
6060
*/
61-
public static final int COMPRESSION_CHANNEL_BUILDER_CUSTOMIZER_ORDER = 1;
61+
public static final int COMPRESSION_CHANNEL_BUILDER_CUSTOMIZER_ORDER = 5;
6262

6363
/**
6464
* Order applied to the {@link GrpcChannelBuilderCustomizer
6565
* decompressionClientCustomizer} used to set the decompressor registry on the channel
6666
* builder.
6767
*/
68-
public static final int DECOMPRESSION_CHANNEL_BUILDER_CUSTOMIZER_ORDER = 2;
68+
public static final int DECOMPRESSION_CHANNEL_BUILDER_CUSTOMIZER_ORDER = 10;
6969

7070
@Bean
7171
@ConditionalOnMissingBean

0 commit comments

Comments
 (0)