mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 12:13:57 +00:00
Required for #5291 to set timeouts for remote signers.
This commit is contained in:
@@ -48,6 +48,7 @@ type SignerDialerEndpoint struct {
|
||||
func NewSignerDialerEndpoint(
|
||||
logger log.Logger,
|
||||
dialer SocketDialer,
|
||||
options ...SignerServiceEndpointOption,
|
||||
) *SignerDialerEndpoint {
|
||||
|
||||
sd := &SignerDialerEndpoint{
|
||||
@@ -56,6 +57,10 @@ func NewSignerDialerEndpoint(
|
||||
maxConnRetries: defaultMaxDialRetries,
|
||||
}
|
||||
|
||||
for _, optionFunc := range options {
|
||||
optionFunc(sd)
|
||||
}
|
||||
|
||||
sd.BaseService = *service.NewBaseService(logger, "SignerDialerEndpoint", sd)
|
||||
sd.signerEndpoint.timeoutReadWrite = defaultTimeoutReadWriteSeconds * time.Second
|
||||
|
||||
|
||||
Reference in New Issue
Block a user