Skip to content

Commit 165b8f8

Browse files
committed
Formatting
1 parent 1484870 commit 165b8f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/channelfactory/AbstractChannelFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected ManagedChannel newManagedChannel(final String name) {
134134
final T builder = newChannelBuilder(name);
135135
configure(builder, name);
136136
final ManagedChannel channel = builder.build();
137-
final Duration timeout = properties.getChannel(name).getImmediateConnectTimeout();
137+
final Duration timeout = this.properties.getChannel(name).getImmediateConnectTimeout();
138138
if (!timeout.isZero()) {
139139
connectOnStartup(name, channel, timeout);
140140
}
@@ -260,7 +260,7 @@ protected void watchConnectivityState(final String name, final ManagedChannel ch
260260
}
261261
}
262262

263-
private void connectOnStartup(String name, ManagedChannel channel, Duration timeout) {
263+
private void connectOnStartup(final String name, final ManagedChannel channel, final Duration timeout) {
264264
log.debug("Initiating connection to channel {}", name);
265265
channel.getState(true);
266266

@@ -270,7 +270,7 @@ private void connectOnStartup(String name, ManagedChannel channel, Duration time
270270
try {
271271
log.debug("Waiting for connection to channel {}", name);
272272
connected = !readyLatch.await(timeout.toMillis(), TimeUnit.MILLISECONDS);
273-
} catch (InterruptedException e) {
273+
} catch (final InterruptedException e) {
274274
Thread.currentThread().interrupt();
275275
connected = false;
276276
}
@@ -280,7 +280,7 @@ private void connectOnStartup(String name, ManagedChannel channel, Duration time
280280
log.info("Successfully connected to channel {}", name);
281281
}
282282

283-
private void waitForReady(ManagedChannel channel, CountDownLatch readySignal) {
283+
private void waitForReady(final ManagedChannel channel, final CountDownLatch readySignal) {
284284
final ConnectivityState state = channel.getState(false);
285285
log.debug("Waiting for ready state. Currently in {}", state);
286286
if (state == ConnectivityState.READY) {

0 commit comments

Comments
 (0)