forked from TrueCloudLab/frostfs-node
[#1713] node: Add Neo RPC switch interval to the config
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
0631b38da1
commit
9a0824766c
9 changed files with 34 additions and 12 deletions
|
@ -51,6 +51,7 @@ func initMorphComponents(c *cfg) {
|
|||
client.WithConnLostCallback(func() {
|
||||
c.internalErr <- errors.New("morph connection has been lost")
|
||||
}),
|
||||
client.WithSwitchInterval(morphconfig.SwitchInterval(c.appCfg)),
|
||||
)
|
||||
if err != nil {
|
||||
c.log.Info("failed to create neo RPC client",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue