Skip to content

Commit

Permalink
fix(vcs,elasticsearch): use name from conf
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault committed Jan 13, 2021
1 parent 6d9163e commit efbe00d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion engine/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *Service) ApplyConfiguration(config interface{}) error {
s.ServiceName = s.Cfg.Name
s.ServiceType = sdk.TypeElasticsearch
s.MaxHeartbeatFailures = s.Cfg.API.MaxHeartbeatFailures
s.ServiceName = "cds-elasticsearch"

return nil
}

Expand Down
1 change: 0 additions & 1 deletion engine/vcs/vcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (s *Service) ApplyConfiguration(config interface{}) error {
s.ServiceType = sdk.TypeVCS
s.HTTPURL = s.Cfg.URL
s.MaxHeartbeatFailures = s.Cfg.API.MaxHeartbeatFailures
s.ServiceName = "cds-vcs"

return nil
}
Expand Down

0 comments on commit efbe00d

Please sign in to comment.