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:
Gareth Kirwan
2025-01-31 02:46:43 +00:00
committed by GitHub
parent 070f17cab8
commit e6d456162a
7 changed files with 16 additions and 34 deletions

View File

@@ -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

View File

@@ -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)
}