Skip to content

Commit

Permalink
Remove circle import
Browse files Browse the repository at this point in the history
  • Loading branch information
kislikjeka committed Jun 21, 2021
1 parent df22532 commit 1486377
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v2/borker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"crypto/sha256"
"encoding/json"
"fmt"
"github.com/Zamzam-Technology/go-binance/v2"
"github.com/Zamzam-Technology/go-binance/v2/common"
"io"
"io/ioutil"
Expand All @@ -29,6 +28,9 @@ const (
defaultTimeout = 5 * time.Second
)

// UseTestnet switch all the API endpoints from production to the testnet
var UseTestnet = false

type doFunc func(req *http.Request) (*http.Response, error)

type Client struct {
Expand Down Expand Up @@ -448,7 +450,7 @@ func FormatTimestamp(t time.Time) int64 {

// getAPIEndpoint return the base endpoint of the Rest API according the UseTestnet flag
func getAPIEndpoint() string {
if binance.UseTestnet {
if UseTestnet {
return baseAPITestnetURL
}
return baseAPIMainURL
Expand Down

0 comments on commit 1486377

Please sign in to comment.