Skip to content

Commit 2bbcc8f

Browse files
committed
GH-1441: Remove unused code
See #1441
1 parent ced67f1 commit 2bbcc8f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-kafka/src/main/java/org/springframework/kafka/core/DefaultKafkaProducerFactory.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,7 @@ public void close(@Nullable Duration timeout) {
735735
if (!this.cache.contains(this)
736736
&& !this.cache.offer(this)) {
737737
this.closed = true;
738-
this.delegate.close(this.producerFailed instanceof TimeoutException
739-
? CLOSE_TIMEOUT_AFTER_TX_TIMEOUT
740-
: timeout);
738+
this.delegate.close(timeout);
741739
}
742740
}
743741
}

0 commit comments

Comments
 (0)