M mconsul/kv.go => mconsul/kv.go +0 -1
@@ 36,7 36,6 @@ func fetchValueFromKvStore(key string) ([]byte, error) {
if consulToken != "" {
req.Header.Set("X-Consul-Token", consulToken)
}
- consulToken = ""
// Make the request and wait for a response
client := &http.Client{}
M mconsul/services.go => mconsul/services.go +0 -1
@@ 41,7 41,6 @@ func fetchServiceAddress(serviceName string) (*FoundService, error) {
if consulToken != "" {
req.Header.Set("X-Consul-Token", consulToken)
}
- consulToken = ""
// Make the request and wait for a response
client := &http.Client{}