Update encoding to be backwards compatible.

This commit is contained in:
Asim
2016-03-29 17:44:46 +01:00
parent e941796234
commit 61178d1b45
3 changed files with 20 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ func (c *consulRegistry) Register(s *Service, opts ...RegisterOption) error {
tags := encodeMetadata(node.Metadata)
tags = append(tags, encodeEndpoints(s.Endpoints)...)
tags = append(tags, encodeVersion(s.Version))
tags = append(tags, encodeVersion(s.Version)...)
var check *consul.AgentServiceCheck