Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(monitor/xfeemngr): slow sync on ethereum #2350

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

kevinhalliday
Copy link
Contributor

Increase sync interval for eth mainnet and omega.

issue: none

Comment on lines +38 to +43
syncInterval := feeOracleSyncInterval
override, ok := chainSyncOverrides[chain.ID]
if ok {
syncInterval = override
}

Copy link
Contributor

@kc1116 kc1116 Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Put this is a func

// chainSyncInterval return chain sync interval. 
func chainSyncInterval(id uint64) time.Duration {
	if override, ok := chainSyncOverrides[id]; ok {
		return override
	}
	
	return feeOracleSyncInterval
}

monitor/xfeemngr/xfeemngr.go Outdated Show resolved Hide resolved
@kevinhalliday kevinhalliday merged commit a3e0726 into main Nov 1, 2024
18 checks passed
@kevinhalliday kevinhalliday deleted the kh/slowl1sync branch November 1, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants