Merge branch 'feat/sturdypost' into lotus_provider_config

This commit is contained in:
Andrew Jackson (Ajax)
2023-09-22 18:19:56 -05:00
7 changed files with 17 additions and 10 deletions
+4
View File
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
@@ -379,6 +380,9 @@ func (e *TaskEngine) bump(taskType string) {
return
}
for _, url := range res {
if !strings.HasPrefix(strings.ToLower(url), "http") {
url = "http://"
}
resp, err := hClient.Get(url + "/scheduler/bump/" + taskType)
if err != nil {
log.Info("Server unreachable to bump: ", err)