WIP: Morph: Add unit tests #2

Closed
dstepanov-yadro wants to merge 233 commits from TrueCloudLab/frostfs-node:master into object-3608-morph-unit-tests
Showing only changes of commit f7c4c07453 - Show all commits

View file

@ -326,7 +326,10 @@ func (s *Server) registerStarter(f func() error) {
// New creates instance of inner ring sever structure.
func New(ctx context.Context, log *logger.Logger, cfg *viper.Viper, errChan chan<- error) (*Server, error) {
var err error
server := &Server{log: log}
server := &Server{
log: log,
metrics: metrics.NewInnerRingMetrics(),
}
server.setHealthStatus(control.HealthStatus_HEALTH_STATUS_UNDEFINED)
@ -393,8 +396,6 @@ func New(ctx context.Context, log *logger.Logger, cfg *viper.Viper, errChan chan
return nil, err
}
server.metrics = metrics.NewInnerRingMetrics()
return server, nil
}