libkv icon indicating copy to clipboard operation
libkv copied to clipboard

Setting http.DefaultClient in store/consul/consul.go causes failure in consul API 0.8.1, Go 1.8.1

Open ebudan opened this issue 8 years ago • 0 comments

Hello

When working against version 0.8.1 of consul-api under Go 1.8.1, the following line causes consul-api to fail (interface conversion of nil): https://github.com/docker/libkv/blob/master/store/consul/consul.go#L75

Commenting this line out lets consul-api proceed with its own default client initialization, which would seem to be enough for the purposes here. (I have't verified that TLS will work, however.)

ebudan avatar Apr 26 '17 22:04 ebudan