use post method to get datasources
This commit is contained in:
parent
fd29d18312
commit
c2f2a7d5e2
|
@ -119,7 +119,7 @@ func loadClustersFromAPI() {
|
||||||
for _, i := range rand.Perm(count) {
|
for _, i := range rand.Perm(count) {
|
||||||
url := urls[i]
|
url := urls[i]
|
||||||
|
|
||||||
res, err := httplib.Get(url).SetTimeout(time.Duration(3000) * time.Millisecond).Response()
|
res, err := httplib.Post(url).SetTimeout(time.Duration(3000) * time.Millisecond).Response()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("curl %s fail: %v", url, err)
|
logger.Errorf("curl %s fail: %v", url, err)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue