mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 19:02:28 +00:00
*: move metric neogo_version
out of pkg/network
Close #3682 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
dc2d22110f
commit
ebb71497a5
4 changed files with 24 additions and 16 deletions
|
@ -506,7 +506,7 @@ func startServer(ctx *cli.Context) error {
|
|||
errChan := make(chan error)
|
||||
rpcServer := rpcsrv.New(chain, cfg.ApplicationConfiguration.RPC, serv, oracleSrv, log, errChan)
|
||||
serv.AddService(rpcServer)
|
||||
|
||||
setNeoGoVersion(config.Version)
|
||||
serv.Start()
|
||||
if !cfg.ApplicationConfiguration.RPC.StartWhenSynchronized {
|
||||
// Run RPC server in a separate routine. This is necessary to avoid a potential
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue