Opt: del consul tokenfile

pull/44/head
zijiren233 2 years ago
parent 0056b85cb5
commit 4592ffdea4

@ -8,7 +8,6 @@ import (
type Consul struct {
ServerName string `json:"serverName"`
Token string `json:"token"`
TokenFile string `json:"tokenFile"`
PathPrefix string `json:"pathPrefix"`
Namespace string `json:"namespace"`
Partition string `json:"partition"`

@ -360,7 +360,6 @@ func NewGrpcClientConn(ctx context.Context, conf *model.Backend) (*grpc.ClientCo
c := api.DefaultConfig()
c.Address = conf.Endpoint
c.Token = conf.Consul.Token
c.TokenFile = conf.Consul.TokenFile
c.PathPrefix = conf.Consul.PathPrefix
c.Namespace = conf.Consul.Namespace
c.Partition = conf.Consul.Partition
@ -474,7 +473,6 @@ func NewHttpClientConn(ctx context.Context, conf *model.Backend) (*http.Client,
c := api.DefaultConfig()
c.Address = conf.Endpoint
c.Token = conf.Consul.Token
c.TokenFile = conf.Consul.TokenFile
c.PathPrefix = conf.Consul.PathPrefix
c.Namespace = conf.Consul.Namespace
c.Partition = conf.Consul.Partition

Loading…
Cancel
Save