Skip to content

Commit

Permalink
Trailing spaces were removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Melnichenko committed Oct 28, 2024
1 parent 2f69214 commit f887345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions topic/src/main/java/tech/ydb/topic/write/impl/WriterImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private IncomingMessage(EnqueuedMessage message) {

public CompletableFuture<Void> tryToEnqueue(EnqueuedMessage message, boolean instant) {
incomingQueueLock.lock();

try {
if (currentInFlightCount >= settings.getMaxSendBufferMessagesCount()) {
if (instant) {
Expand Down Expand Up @@ -193,7 +193,7 @@ private void moveEncodedMessagesToSendingQueue() {
boolean haveNewMessagesToSend = false;
// Working with encodingMessages under incomingQueueLock to prevent deadlocks while working with free method
incomingQueueLock.lock();

try {
// Taking all encoded messages to sending queue
while (true) {
Expand Down Expand Up @@ -274,7 +274,7 @@ protected CompletableFuture<Void> flushImpl() {
return CompletableFuture.completedFuture(null);
}
incomingQueueLock.lock();

try {
return this.lastAcceptedMessageFuture.isDone()
? CompletableFuture.completedFuture(null)
Expand All @@ -286,7 +286,7 @@ protected CompletableFuture<Void> flushImpl() {

private void free(int messageCount, long sizeBytes) {
incomingQueueLock.lock();

try {
currentInFlightCount -= messageCount;
availableSizeBytes += sizeBytes;
Expand Down

0 comments on commit f887345

Please sign in to comment.