Skip to content

Commit 7921de9

Browse files
feat: unload partitions when not publishing for better performance
1 parent 2429c76 commit 7921de9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/internal/wire/UnloadingPublisher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ protected synchronized void doStop() {
5454
alarmFuture.cancel(false);
5555
if (!publisher.isPresent()) {
5656
notifyStopped();
57+
return;
5758
}
5859
publisher
5960
.get()

0 commit comments

Comments
 (0)