Skip to content

Commit 93b562e

Browse files
committed
Fix PulsarProperties lookupTimeout
Prefer `null` to `-1` for the default timeout. See gh-34763
1 parent 3c62def commit 93b562e

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/pulsar

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/pulsar/PulsarProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static class Client {
116116
/**
117117
* Client lookup timeout.
118118
*/
119-
private Duration lookupTimeout = Duration.ofMillis(-1); // FIXME
119+
private Duration lookupTimeout;
120120

121121
/**
122122
* Duration to wait for a connection to a broker to be established.

0 commit comments

Comments
 (0)