use post method to get datasources

This commit is contained in:
Ulric Qin 2022-05-23 13:31:05 +08:00
parent fd29d18312
commit c2f2a7d5e2
1 changed files with 1 additions and 1 deletions

View File

@ -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