forked from TrueCloudLab/frostfs-node
[#1015] morph: Resolve funlen linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
bb78b96830
commit
35bdb69b78
1 changed files with 6 additions and 3 deletions
|
@ -85,6 +85,12 @@ func initMorphComponents(ctx context.Context, c *cfg) {
|
|||
zap.Bool("sidechain_enabled", c.cfgMorph.notaryEnabled),
|
||||
)
|
||||
|
||||
initNetmapSource(c)
|
||||
|
||||
c.cfgMorph.inactivityTimeout = morphconfig.InactivityTimeout(c.appCfg)
|
||||
}
|
||||
|
||||
func initNetmapSource(c *cfg) {
|
||||
wrap, err := nmClient.NewFromMorph(c.cfgMorph.client, c.cfgNetmap.scriptHash, 0, nmClient.TryNotary())
|
||||
fatalOnErr(err)
|
||||
|
||||
|
@ -105,9 +111,6 @@ func initMorphComponents(ctx context.Context, c *cfg) {
|
|||
// use RPC node as source of netmap (with caching)
|
||||
netmapSource = newCachedNetmapStorage(c.cfgNetmap.state, wrap)
|
||||
}
|
||||
|
||||
c.cfgMorph.inactivityTimeout = morphconfig.InactivityTimeout(c.appCfg)
|
||||
|
||||
c.netMapSource = netmapSource
|
||||
c.cfgNetmap.wrapper = wrap
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue