@@ -22,20 +22,11 @@ const (
22
22
BackupTimelockWorkerIntervalConfigEnvName = envConfigPrefix + "BACKUP_TIMELOCK_WORKER_INTERVAL"
23
23
defaultBackupTimelockWorkerInterval = 1 * time .Minute
24
24
25
- BackupExternalDepositWorkerCountConfigEnvName = envConfigPrefix + "BACKUP_EXTERNAL_DEPOSIT_WORKER_COUNT"
26
- defaultBackupExternalDepositWorkerCount = 32
27
-
28
25
BackupExternalDepositWorkerIntervalConfigEnvName = envConfigPrefix + "BACKUP_EXTERNAL_DEPOSIT_WORKER_INTERVAL"
29
26
defaultBackupExternalDepositWorkerInterval = 15 * time .Second
30
27
31
- MessagingFeeCollectorPublicKeyConfigEnvName = envConfigPrefix + "MESSAGING_FEE_COLLECTOR_PUBLIC_KEY"
32
- defaultMessagingFeeCollectorPublicKey = "invalid" // ensure something valid is set
33
-
34
28
SwapSubsidizerPublicKeyConfigEnvName = envConfigPrefix + "SWAP_SUBSIDIZER_PUBLIC_KEY"
35
29
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
39
30
)
40
31
41
32
type conf struct {
@@ -44,14 +35,10 @@ type conf struct {
44
35
programUpdateWorkerCount config.Uint64
45
36
programUpdateQueueSize config.Uint64
46
37
47
- backupExternalDepositWorkerCount config.Uint64
48
38
backupExternalDepositWorkerInterval config.Duration
49
39
50
40
backupTimelockWorkerInterval config.Duration
51
41
52
- messagingFeeCollectorPublicKey config.String
53
- backupMessagingWorkerInterval config.Duration
54
-
55
42
swapSubsidizerPublicKey config.String
56
43
}
57
44
@@ -67,14 +54,10 @@ func WithEnvConfigs() ConfigProvider {
67
54
programUpdateWorkerCount : env .NewUint64Config (ProgramUpdateWorkerCountConfigEnvName , defaultProgramUpdateWorkerCount ),
68
55
programUpdateQueueSize : env .NewUint64Config (ProgramUpdateQueueSizeConfigEnvName , defaultProgramUpdateQueueSize ),
69
56
70
- backupExternalDepositWorkerCount : env .NewUint64Config (BackupExternalDepositWorkerCountConfigEnvName , defaultBackupExternalDepositWorkerCount ),
71
57
backupExternalDepositWorkerInterval : env .NewDurationConfig (BackupExternalDepositWorkerIntervalConfigEnvName , defaultBackupExternalDepositWorkerInterval ),
72
58
73
59
backupTimelockWorkerInterval : env .NewDurationConfig (BackupTimelockWorkerIntervalConfigEnvName , defaultBackupTimelockWorkerInterval ),
74
60
75
- messagingFeeCollectorPublicKey : env .NewStringConfig (MessagingFeeCollectorPublicKeyConfigEnvName , defaultMessagingFeeCollectorPublicKey ),
76
- backupMessagingWorkerInterval : env .NewDurationConfig (BackupMessagingWorkerIntervalConfigEnvName , defaultBackupMessagingWorkerInterval ),
77
-
78
61
swapSubsidizerPublicKey : env .NewStringConfig (SwapSubsidizerPublicKeyConfigEnvName , defaultSwapSubsidizerPublicKey ),
79
62
}
80
63
}
0 commit comments