Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7bd8f754d8 | |||
| 43574a1d1c |
@@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"git.pbiernat.io/egommerce/go-api-pkg/config"
|
||||
"git.ego.cloudns.be/egommerce/go-api-pkg/config"
|
||||
consul "github.com/hashicorp/consul/api"
|
||||
"github.com/hashicorp/consul/connect"
|
||||
)
|
||||
@@ -46,6 +46,7 @@ func NewService(servAddr, id, name, useDomainOverIp, addr, domain, pathPrefix st
|
||||
if useDomainOverIp == "true" { // FIXME types...
|
||||
s.Address = domain
|
||||
}
|
||||
log.Printf("Init consul with server addr: %s", s.Address)
|
||||
|
||||
client, err := consul.NewClient(newClientConfig(servAddr))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user