Skip to content

Commit efa38ec

Browse files
committed
adapt to go chassis
1 parent c37732a commit efa38ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csemonitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"time"
99

1010
"github.com/ServiceComb/go-chassis/core/archaius"
11-
"github.com/ServiceComb/go-chassis/core/config"
1211
"github.com/ServiceComb/go-chassis/core/lager"
1312
"github.com/ServiceComb/go-chassis/core/registry"
13+
runtime2 "github.com/ServiceComb/go-chassis/pkg/runtime"
1414
"github.com/rcrowley/go-metrics"
1515
)
1616

@@ -61,7 +61,7 @@ func (reporter *Reporter) Run() {
6161

6262
//If monitoring is enabled then only try to connect to Monitoring Server
6363
if archaius.GetBool("cse.monitor.client.enable", true) {
64-
reporter.serviceID = config.SelfServiceID
64+
reporter.serviceID = runtime2.ServiceID
6565

6666
instances, ok := registry.SelfInstancesCache.Get(reporter.serviceID)
6767

0 commit comments

Comments
 (0)