Skip to content

Commit af3b288

Browse files
Mateusz Czeladkaclaude
andcommitted
chore: update peer discovery and token registry config
- Remove outdated token registry comment from preprod config - Change peer discovery initial delay from 1 to 5 minutes - Refactor TimeUnit import to use static import for MINUTES 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0f6c64e commit af3b288

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env.docker-compose-preprod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ POSTGRESQL_EXPORTER_PORT=9187
112112
PEER_DISCOVERY=true
113113

114114
## Token Registry
115-
# Externally hosted token registry is currently only available for mainnet
116115
TOKEN_REGISTRY_ENABLED=false
117116
TOKEN_REGISTRY_BASE_URL=
118117
TOKEN_REGISTRY_CACHE_TTL_HOURS=1

yaci-indexer/src/main/java/org/cardanofoundation/rosetta/yaciindexer/job/PeerDiscoveryJob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import org.springframework.stereotype.Service;
1010

1111
import java.util.Optional;
12-
import java.util.concurrent.TimeUnit;
12+
13+
import static java.util.concurrent.TimeUnit.MINUTES;
1314

1415
@Service
1516
@Slf4j
@@ -26,7 +27,7 @@ public void init() {
2627
}
2728

2829
// Initial refresh after 1 minute, then every hour
29-
@Scheduled(initialDelay = 1, fixedDelay = 60, timeUnit = TimeUnit.MINUTES)
30+
@Scheduled(initialDelay = 5, fixedDelay = 60, timeUnit = MINUTES)
3031
public void refreshPeers() {
3132
log.info("Starting a periodic / scheduled peer discovery refresh...");
3233

0 commit comments

Comments
 (0)