Skip to content

Commit

Permalink
Switch list to threadsafe variant
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlb committed Oct 2, 2024
1 parent 36d31c4 commit 9d67e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astra/src/main/java/com/slack/astra/blobfs/BlobStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import com.slack.astra.chunk.ReadWriteChunk;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
Expand Down Expand Up @@ -166,7 +166,7 @@ public List<String> listFiles(String prefix) {
ListObjectsV2Publisher asyncPaginatedListResponse =
s3AsyncClient.listObjectsV2Paginator(listRequest);

List<String> filesList = new ArrayList<>();
List<String> filesList = new CopyOnWriteArrayList<>();
try {
asyncPaginatedListResponse
.subscribe(
Expand Down

0 comments on commit 9d67e4d

Please sign in to comment.