|
|
@ -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 |
|
|
|
|
|
|
|