mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-17 15:03:24 +01:00
Use a shorter default node claim TTL
This commit is contained in:
committed by
Jon Chambers
parent
5e7a50a36d
commit
38121bcbfa
@@ -21,7 +21,7 @@ public class DynamicMessagePersisterConfiguration {
|
||||
private double trimOversizedQueueExtraRoomRatio = 1.5;
|
||||
|
||||
@JsonProperty
|
||||
private Duration nodeClaimTtl = Duration.ofHours(1);
|
||||
private Duration nodeClaimTtl = Duration.ofMinutes(5);
|
||||
|
||||
@JsonProperty
|
||||
private Duration sleepBetweenNodes = Duration.ofSeconds(5);
|
||||
|
||||
@@ -78,7 +78,7 @@ class MessagePersisterIntegrationTest {
|
||||
final DynamicConfiguration dynamicConfiguration = mock(DynamicConfiguration.class);
|
||||
|
||||
when(dynamicConfiguration.getMessagePersisterConfiguration())
|
||||
.thenReturn(new DynamicMessagePersisterConfiguration(true, 1.5, Duration.ofHours(1), Duration.ZERO));
|
||||
.thenReturn(new DynamicMessagePersisterConfiguration(true, 1.5, Duration.ofMinutes(5), Duration.ZERO));
|
||||
|
||||
when(dynamicConfigurationManager.getConfiguration()).thenReturn(dynamicConfiguration);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user