mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 06:46:53 +00:00
Parallelize single-shot account crawlers
This commit is contained in:
1 parent
fedeef4da5
commit
8edb450d73
5 files changed
+29
-18
No files matched your search
@@ -57,6 +57,7 @@ import org.whispersystems.textsecuregcm.tests.util.DevicesHelper;
|
||||
import org.whispersystems.textsecuregcm.util.AttributeValues;
|
||||
import org.whispersystems.textsecuregcm.util.SystemMapper;
|
||||
import org.whispersystems.textsecuregcm.util.TestClock;
|
||||
import reactor.core.scheduler.Schedulers;
|
||||
import software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient;
|
||||
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
|
||||
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;
|
||||
@@ -504,7 +505,8 @@ class AccountsTest {
|
||||
accounts.create(account);
|
||||
}
|
||||
|
||||
final List<Account> retrievedAccounts = accounts.getAll(2).collectList().block();
|
||||
final List<Account> retrievedAccounts =
|
||||
accounts.getAll(2, Schedulers.parallel()).sequential().collectList().block();
|
||||
|
||||
assertNotNull(retrievedAccounts);
|
||||
assertEquals(expectedAccounts.stream().map(Account::getUuid).collect(Collectors.toSet()),
|
||||
|
||||
Reference in new issue
Block a user