Skip to content

Commit

Permalink
refactor: better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 11, 2024
1 parent 76a690b commit 621b51b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ private void loadAndSendQueuedChunks() {
}

if (chunkSendingStrategy == ASYNC) {
asyncChunkSendingManager.addChunk(chunkReadyToSend.values());
asyncChunkSendingManager.addChunkToSendingQueue(chunkReadyToSend.values());
} else {
// Priority is given to sending chunks that are close to the chunk loader
var lcpStream = chunkReadyToSend.values().stream();
Expand Down Expand Up @@ -508,7 +508,7 @@ public AsyncChunkSendingManager() {
Thread.ofVirtual().start(loop::startLoop);
}

public void addChunk(Collection<Chunk> chunks) {
public void addChunkToSendingQueue(Collection<Chunk> chunks) {
chunkSendingQueue.addAll(chunks);
}

Expand Down

0 comments on commit 621b51b

Please sign in to comment.