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

Add environment variable to disable one-sync #1488

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Mar 15, 2024

No description provided.

@serprex serprex force-pushed the env-disable-one-sync branch from 9a4100b to 8ef5c03 Compare March 15, 2024 17:57
@@ -51,6 +51,11 @@ func PeerDBCDCDiskSpillMemPercentThreshold() int {
return getEnvInt("PEERDB_CDC_DISK_SPILL_MEM_PERCENT_THRESHOLD", -1)
}

// PEERDB_DISABLE_ONE_SYNC
func PeerDBDisableOneSync() bool {
return getEnvBool("PEERDB_DISABLE_ONE_SYNC", false)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: prefer it as enable and set true by default

Copy link
Contributor

Choose a reason for hiding this comment

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

disabling it is going to be the rare setting so it makes sense to have that be the name

Copy link
Contributor

Choose a reason for hiding this comment

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

kind of like disableTLS

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit bc4495a into main Mar 15, 2024
7 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the env-disable-one-sync branch March 15, 2024 19:03
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