Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Nov 15, 2023
1 parent 8446894 commit 6834b05
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions zboxcore/zboxutil/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,6 @@ func NewRollbackRequest(baseUrl, allocationID string, allocationTx string, body
return req, nil
}

var lock sync.Mutex

func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]string, handler SCRestAPIHandler) ([]byte, error) {
numSharders := len(blockchain.GetSharders())
sharders := blockchain.GetSharders()
Expand All @@ -824,7 +822,6 @@ func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]
go func(sharder string) {
defer wg.Done()

lock.Lock()
urlString := fmt.Sprintf("%v/%v%v%v", sharder, SC_REST_API_URL, scAddress, relativePath)
urlObj, err := url.ParseRequestURI(urlString)
if err != nil {
Expand All @@ -838,7 +835,6 @@ func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]
urlObj.RawQuery = q.Encode()
client := &http.Client{Transport: DefaultTransport}
s := urlObj.String()
lock.Unlock()

response, err := client.Get(s)
if err != nil {
Expand Down

0 comments on commit 6834b05

Please sign in to comment.