-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
ocr1_config.go
39 lines (34 loc) · 1.08 KB
/
ocr1_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package config
import "time"
func (c *chainScopedConfig) OCRContractConfirmations() uint16 {
val, ok := c.GeneralConfig.GlobalOCRContractConfirmations()
if ok {
c.logEnvOverrideOnce("OCRContractConfirmations", val)
return val
}
return c.defaultSet.ocrContractConfirmations
}
func (c *chainScopedConfig) OCRContractTransmitterTransmitTimeout() time.Duration {
val, ok := c.GeneralConfig.GlobalOCRContractTransmitterTransmitTimeout()
if ok {
c.logEnvOverrideOnce("OCRContractTransmitterTransmitTimeout", val)
return val
}
return c.defaultSet.ocrContractTransmitterTransmitTimeout
}
func (c *chainScopedConfig) OCRDatabaseTimeout() time.Duration {
val, ok := c.GeneralConfig.GlobalOCRDatabaseTimeout()
if ok {
c.logEnvOverrideOnce("OCRDatabaseTimeout", val)
return val
}
return c.defaultSet.ocrDatabaseTimeout
}
func (c *chainScopedConfig) OCRObservationGracePeriod() time.Duration {
val, ok := c.GeneralConfig.GlobalOCRObservationGracePeriod()
if ok {
c.logEnvOverrideOnce("OCRObservationGracePeriod", val)
return val
}
return c.defaultSet.ocrObservationGracePeriod
}