@@ -22,20 +22,11 @@ const (
2222 BackupTimelockWorkerIntervalConfigEnvName = envConfigPrefix + "BACKUP_TIMELOCK_WORKER_INTERVAL"
2323 defaultBackupTimelockWorkerInterval = 1 * time .Minute
2424
25- BackupExternalDepositWorkerCountConfigEnvName = envConfigPrefix + "BACKUP_EXTERNAL_DEPOSIT_WORKER_COUNT"
26- defaultBackupExternalDepositWorkerCount = 32
27-
2825 BackupExternalDepositWorkerIntervalConfigEnvName = envConfigPrefix + "BACKUP_EXTERNAL_DEPOSIT_WORKER_INTERVAL"
2926 defaultBackupExternalDepositWorkerInterval = 15 * time .Second
3027
31- MessagingFeeCollectorPublicKeyConfigEnvName = envConfigPrefix + "MESSAGING_FEE_COLLECTOR_PUBLIC_KEY"
32- defaultMessagingFeeCollectorPublicKey = "invalid" // ensure something valid is set
33-
3428 SwapSubsidizerPublicKeyConfigEnvName = envConfigPrefix + "SWAP_SUBSIDIZER_PUBLIC_KEY"
3529 defaultSwapSubsidizerPublicKey = "invalid" // ensure something valid is set
36-
37- BackupMessagingWorkerIntervalConfigEnvName = envConfigPrefix + "BACKUP_MESSAGING_WORKER_INTERVAL"
38- defaultBackupMessagingWorkerInterval = 15 * time .Minute // Decrease significantly once feature is live
3930)
4031
4132type conf struct {
@@ -44,14 +35,10 @@ type conf struct {
4435 programUpdateWorkerCount config.Uint64
4536 programUpdateQueueSize config.Uint64
4637
47- backupExternalDepositWorkerCount config.Uint64
4838 backupExternalDepositWorkerInterval config.Duration
4939
5040 backupTimelockWorkerInterval config.Duration
5141
52- messagingFeeCollectorPublicKey config.String
53- backupMessagingWorkerInterval config.Duration
54-
5542 swapSubsidizerPublicKey config.String
5643}
5744
@@ -67,14 +54,10 @@ func WithEnvConfigs() ConfigProvider {
6754 programUpdateWorkerCount : env .NewUint64Config (ProgramUpdateWorkerCountConfigEnvName , defaultProgramUpdateWorkerCount ),
6855 programUpdateQueueSize : env .NewUint64Config (ProgramUpdateQueueSizeConfigEnvName , defaultProgramUpdateQueueSize ),
6956
70- backupExternalDepositWorkerCount : env .NewUint64Config (BackupExternalDepositWorkerCountConfigEnvName , defaultBackupExternalDepositWorkerCount ),
7157 backupExternalDepositWorkerInterval : env .NewDurationConfig (BackupExternalDepositWorkerIntervalConfigEnvName , defaultBackupExternalDepositWorkerInterval ),
7258
7359 backupTimelockWorkerInterval : env .NewDurationConfig (BackupTimelockWorkerIntervalConfigEnvName , defaultBackupTimelockWorkerInterval ),
7460
75- messagingFeeCollectorPublicKey : env .NewStringConfig (MessagingFeeCollectorPublicKeyConfigEnvName , defaultMessagingFeeCollectorPublicKey ),
76- backupMessagingWorkerInterval : env .NewDurationConfig (BackupMessagingWorkerIntervalConfigEnvName , defaultBackupMessagingWorkerInterval ),
77-
7861 swapSubsidizerPublicKey : env .NewStringConfig (SwapSubsidizerPublicKeyConfigEnvName , defaultSwapSubsidizerPublicKey ),
7962 }
8063 }
0 commit comments