diff --git a/server/egovernor/container.go b/server/egovernor/container.go index 7bf406c..3957114 100644 --- a/server/egovernor/container.go +++ b/server/egovernor/container.go @@ -54,7 +54,7 @@ func (c *Container) Build(options ...Option) *Component { for _, option := range options { option(c) } - if c.config.EnableConnTcp { + if c.config.EnableConnTcpMetric { obj, err := emetric.NewTCPStatCollector() if err != nil { c.logger.Panic("NewTCPStatCollector fail", elog.FieldErr(err))