diff --git a/pkg/extensions/sync/httpclient/client.go b/pkg/extensions/sync/httpclient/client.go index ddd239c15..b78503d8b 100644 --- a/pkg/extensions/sync/httpclient/client.go +++ b/pkg/extensions/sync/httpclient/client.go @@ -73,6 +73,9 @@ func (httpClient *Client) SetConfig(config Config) error { } func (httpClient *Client) Ping() bool { + httpClient.lock.RLock() + defer httpClient.lock.RUnlock() + pingURL := *httpClient.url pingURL = *pingURL.JoinPath("/v2/")