mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 15:10:42 +00:00
Codespell: Fix failures with v2.4.0 (#1790)
* Codespell: Fix new violations in 2.4.0 * Codespell: Move currency ignoring to regex * Codespell: Add vendor to ignored files * Codespell: Remove github action params duplicated from .codespellrc .codespellrc already exists in the project * Codespell: Remove unused freez from ignore words
This commit is contained in:
@@ -1301,7 +1301,7 @@ type CrossMarginBalance struct {
|
||||
BorrowedNet string `json:"borrowed_net"`
|
||||
TotalNetAssetInUSDT string `json:"net"`
|
||||
PositionLeverage string `json:"leverage"`
|
||||
Risk string `json:"risk"` // Risk rate. When it belows 110%, liquidation will be triggered. Calculation formula: total / (borrowed+interest)
|
||||
Risk string `json:"risk"` // Risk percentage; Liquidation is triggered when this falls below required margin. Calculation: total / (borrowed+interest)
|
||||
}
|
||||
|
||||
// WalletSavedAddress represents currency saved address
|
||||
|
||||
@@ -204,7 +204,7 @@ func (r *Requester) doRequest(ctx context.Context, endpoint EndpointLimit, newRe
|
||||
return checkErr
|
||||
} else if retry {
|
||||
if err == nil {
|
||||
// If the body isn't fully read, the connection cannot be re-used
|
||||
// If the body isn't fully read, the connection cannot be reused
|
||||
r.drainBody(resp.Body)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user