mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Makefile: add new recipes and linter features (#244)
* Makefile: add new recipes and linter features * expand linter coverage and fix issues * Update makefile * address PR nitterinos
This commit is contained in:
@@ -60,7 +60,7 @@ const (
|
||||
func initialiseHTTPClient() {
|
||||
// If the HTTPClient isn't set, start a new client with a default timeout of 15 seconds
|
||||
if HTTPClient == nil {
|
||||
HTTPClient = NewHTTPClientWithTimeout(time.Duration(time.Second * 15))
|
||||
HTTPClient = NewHTTPClientWithTimeout(time.Second * 15)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ func GetHMAC(hashType int, input, key []byte) []byte {
|
||||
}
|
||||
}
|
||||
|
||||
hmac := hmac.New(hash, []byte(key))
|
||||
hmac := hmac.New(hash, key)
|
||||
hmac.Write(input)
|
||||
return hmac.Sum(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user