Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35e4bc8ac2 |
@@ -2,12 +2,11 @@ package consul
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"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"
|
||||
)
|
||||
@@ -61,7 +60,6 @@ func NewService(servAddr, id, name, useDomainOverIp, addr, domain, pathPrefix st
|
||||
|
||||
func newClientConfig(serverAddr string) *consul.Config {
|
||||
conf := consul.DefaultConfig()
|
||||
log.Printf("Setting consul server addr: %s", serverAddr)
|
||||
conf.Address = serverAddr
|
||||
|
||||
return conf
|
||||
|
||||
Reference in New Issue
Block a user