mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
chore: fix some function names in comments (#1862)
Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
@@ -1234,7 +1234,7 @@ func trelloGetLists() ([]TrelloData, error) {
|
||||
return resp, sendGetReq(fmt.Sprintf(pathGetAllLists, trelloBoardID, apiKey, apiToken), &resp)
|
||||
}
|
||||
|
||||
// trelloNewList creates a new list on a specified boards on trello
|
||||
// trelloCreateNewList creates a new list on a specified boards on trello
|
||||
func trelloCreateNewList() error {
|
||||
if trelloBoardID == "" {
|
||||
return errors.New("trelloBoardID not set, cannot create a new list")
|
||||
|
||||
2
common/cache/lru.go
vendored
2
common/cache/lru.go
vendored
@@ -97,7 +97,7 @@ func (l *LRU) Len() uint64 {
|
||||
return uint64(l.l.Len()) //nolint:gosec // False positive as uint64 (2^64-1) can support both 2^31-1 on 32bit systems and 2^63-1 on 64bit systems
|
||||
}
|
||||
|
||||
// removeOldest removes the oldest item from the cache.
|
||||
// removeOldestEntry removes the oldest item from the cache.
|
||||
func (l *LRU) removeOldestEntry() {
|
||||
if i := l.l.Back(); i != nil {
|
||||
l.removeElement(i)
|
||||
|
||||
@@ -770,7 +770,7 @@ func checkPairDelimiter(tb testing.TB, p *PairsManager, err error, d, msg string
|
||||
}
|
||||
}
|
||||
|
||||
// TestPairManagerUnmarshal tests behaviour expectations:
|
||||
// TestPairManagerSetDelimitersFromConfig tests behaviour expectations:
|
||||
// * Should error with no ConfigFormat ( `CheckPairConsistency` catches that )
|
||||
// * Asset pair config should take precedent
|
||||
// * Global store pair config should apply when no Asset pair config
|
||||
|
||||
@@ -194,7 +194,7 @@ func (p Pair) LimitBuyOrderParameters(wantingToBuy Code) (*OrderParameters, erro
|
||||
return p.getOrderParameters(wantingToBuy, false, false)
|
||||
}
|
||||
|
||||
// getOrderDecisionDetails returns order parameters for the currency pair using
|
||||
// getOrderParameters returns order parameters for the currency pair using
|
||||
// the provided currency code, whether or not you are selling and whether or not
|
||||
// you are placing a market order.
|
||||
func (p Pair) getOrderParameters(c Code, selling, market bool) (*OrderParameters, error) {
|
||||
|
||||
Reference in New Issue
Block a user