Skip to content

Commit

Permalink
indexer: use sleep config for obj snapshot (MystenLabs#15874)
Browse files Browse the repository at this point in the history
## Description 

title

## Test Plan 

CI

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
gegaowp authored Jan 23, 2024
1 parent 91f52d1 commit 8b95834
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ where

loop {
while latest_cp <= start_cp + self.config.snapshot_max_lag as u64 {
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
tokio::time::sleep(std::time::Duration::from_secs(self.config.sleep_duration))
.await;
latest_cp = self
.store
.get_latest_tx_checkpoint_sequence_number()
Expand Down

0 comments on commit 8b95834

Please sign in to comment.