[#1015] morph: Resolve funlen linter
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 2m58s
DCO action / DCO (pull_request) Successful in 2m46s
Build / Build Components (1.21) (pull_request) Successful in 3m50s
Build / Build Components (1.20) (pull_request) Successful in 3m59s
Tests and linters / Staticcheck (pull_request) Successful in 5m32s
Tests and linters / Lint (pull_request) Successful in 5m58s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m17s
Tests and linters / Tests with -race (pull_request) Successful in 8m34s
Tests and linters / Tests (1.21) (pull_request) Successful in 8m47s
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 2m58s
DCO action / DCO (pull_request) Successful in 2m46s
Build / Build Components (1.21) (pull_request) Successful in 3m50s
Build / Build Components (1.20) (pull_request) Successful in 3m59s
Tests and linters / Staticcheck (pull_request) Successful in 5m32s
Tests and linters / Lint (pull_request) Successful in 5m58s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m17s
Tests and linters / Tests with -race (pull_request) Successful in 8m34s
Tests and linters / Tests (1.21) (pull_request) Successful in 8m47s
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…
Reference in a new issue