Skip to content

Commit

Permalink
Merge pull request #20 from gateway-fm/wip/node-name
Browse files Browse the repository at this point in the history
wip: try to change srv.Node.Node to srv.Service.ID
  • Loading branch information
dmitriyselivanov authored May 17, 2023
2 parents 3f24415 + 391d6f9 commit 3575ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/consul_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ func (d *ConsulDiscovery) createServiceFromConsul(srv *consul.ServiceEntry) serv
tagsMap[t] = struct{}{}
}

return service.NewService(fmt.Sprintf("%s:%d", addr, srv.Service.Port), srv.Node.Node, tagsMap)
return service.NewService(fmt.Sprintf("%s:%d", addr, srv.Service.Port), srv.Service.ID, tagsMap)
}

0 comments on commit 3575ae1

Please sign in to comment.