diff --git a/internal/model/vendorBackend.go b/internal/model/vendorBackend.go index df726b37..04ccda9c 100644 --- a/internal/model/vendorBackend.go +++ b/internal/model/vendorBackend.go @@ -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"` diff --git a/internal/vendor/vendor.go b/internal/vendor/vendor.go index bdc626e4..0c47000b 100644 --- a/internal/vendor/vendor.go +++ b/internal/vendor/vendor.go @@ -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