[#493] node: Replace configuration of API clients to a separated section
Replace dial timeout of API client connection from `grpc` section to `apiclient` since this value is semantically decoupled from the transport protocol. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
31eb6617fc
commit
acd63afd48
2 changed files with 6 additions and 3 deletions
|
@ -168,7 +168,7 @@ func initObjectService(c *cfg) {
|
|||
nodeOwner.SetNeo3Wallet(neo3Wallet)
|
||||
|
||||
clientCache := cache.NewSDKClientCache(
|
||||
client.WithDialTimeout(c.viper.GetDuration(cfgDialTimeout)))
|
||||
client.WithDialTimeout(c.viper.GetDuration(cfgAPIClientDialTimeout)))
|
||||
|
||||
clientConstructor := &reputationClientConstructor{
|
||||
log: c.log,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue