|
26 | 26 | import com.rabbitmq.stream.StreamException; |
27 | 27 | import com.rabbitmq.stream.impl.Client.ClientParameters; |
28 | 28 | import com.rabbitmq.stream.impl.StreamEnvironment.LocatorNotAvailableException; |
29 | | -import io.netty.buffer.ByteBufAllocator; |
30 | 29 | import java.net.URI; |
31 | 30 | import java.time.Duration; |
32 | 31 | import java.util.Arrays; |
@@ -94,7 +93,7 @@ Client.ClientParameters duplicate() { |
94 | 93 | ProducersCoordinator.MAX_TRACKING_CONSUMERS_PER_CLIENT, |
95 | 94 | ConsumersCoordinator.MAX_SUBSCRIPTIONS_PER_CLIENT, |
96 | 95 | null, |
97 | | - ByteBufAllocator.DEFAULT, |
| 96 | + Utils.byteBufAllocator(), |
98 | 97 | false, |
99 | 98 | type -> "locator-connection", |
100 | 99 | cf, |
@@ -163,7 +162,7 @@ void shouldTryUrisOnInitializationFailure() throws Exception { |
163 | 162 | ProducersCoordinator.MAX_TRACKING_CONSUMERS_PER_CLIENT, |
164 | 163 | ConsumersCoordinator.MAX_SUBSCRIPTIONS_PER_CLIENT, |
165 | 164 | null, |
166 | | - ByteBufAllocator.DEFAULT, |
| 165 | + Utils.byteBufAllocator(), |
167 | 166 | false, |
168 | 167 | type -> "locator-connection", |
169 | 168 | cf, |
@@ -195,7 +194,7 @@ void shouldNotOpenConnectionWhenLazyInitIsEnabled( |
195 | 194 | ProducersCoordinator.MAX_TRACKING_CONSUMERS_PER_CLIENT, |
196 | 195 | ConsumersCoordinator.MAX_SUBSCRIPTIONS_PER_CLIENT, |
197 | 196 | null, |
198 | | - ByteBufAllocator.DEFAULT, |
| 197 | + Utils.byteBufAllocator(), |
199 | 198 | lazyInit, |
200 | 199 | type -> "locator-connection", |
201 | 200 | cf, |
|
0 commit comments