All checks were successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
21 lines
381 B
Go
21 lines
381 B
Go
package client
|
|
|
|
import "time"
|
|
|
|
// Config captures connection settings for the chain gateway gRPC service.
|
|
type Config struct {
|
|
Address string
|
|
DialTimeout time.Duration
|
|
CallTimeout time.Duration
|
|
Insecure bool
|
|
}
|
|
|
|
func (c *Config) setDefaults() {
|
|
if c.DialTimeout <= 0 {
|
|
c.DialTimeout = 5 * time.Second
|
|
}
|
|
if c.CallTimeout <= 0 {
|
|
c.CallTimeout = 3 * time.Second
|
|
}
|
|
}
|