Skip to content

Commit

Permalink
Modify UpdateService operation, add version parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyingjie committed Mar 22, 2021
1 parent c8e7744 commit e253905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/object/meshcontroller/worker/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func (server *ObservabilityManager) UpdateObservability(serviceName string, newO


// UpdateService updates service.
func (server *ObservabilityManager) UpdateService(newService *spec.Service) error {
func (server *ObservabilityManager) UpdateService(newService *spec.Service, version int64) error {
paramsMap := structs.Map(newService)
args := []interface{}{paramsMap}
args := []interface{}{paramsMap, version}

logger.Infof("Update Service: %s Observability, new Service is %s", newService.Name, newService)

Expand Down

0 comments on commit e253905

Please sign in to comment.