Skip to content

Commit

Permalink
Update agentClient api's url
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyingjie committed Apr 17, 2021
1 parent f29daf6 commit 2c84818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/util/jmxtool/agent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
)

const (
canaryConfigURL = "/canary-config"
serviceConfigURL = "/service-config"
canaryConfigURL = "/config-canary"
serviceConfigURL = "/config-service"
)

type AgentInterface interface {
Expand Down Expand Up @@ -73,6 +73,6 @@ func (agent *AgentClient) UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders,

url := agent.URL + canaryConfigURL
resp, err := handleRequest(http.MethodPut, url, bytes)
logger.Infof("Update Canary, URL: %s, request %s, result: %v", string(bytes), resp)
logger.Infof("Update Canary, URL: %s, request %s, result: %v", url, string(bytes), resp)
return err
}

0 comments on commit 2c84818

Please sign in to comment.