mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
modernise: Run new gopls modernise tool against the codebase and fix minor issues (#1826)
* modernise: Run new gopls modernise tool against codebase
* Address shazbert's nits
* apichecker, gctcli: Simplify HTML scraping functions and improve depth limit handling
* refactor: Create minSyncInterval const and update order book limit handling for binance and binanceUS
* refactor: Various slice usage improvements and rename TODO
* tranches: Revert deleteByID changes due to performance decrease
Shazbert was a F1 driver in a past lifetime 🏎️
* tranches: Simply retrieve copy
Thanks to shazbert
* documentation: Sort contributors list by contributions
* tranches: Remove deadcode in deleteByID
This commit is contained in:
@@ -276,7 +276,7 @@ func generateWhereQuery(columns, id []string, limit int) []qm.QueryMod {
|
||||
return queries
|
||||
}
|
||||
|
||||
func generateWhereBetweenQuery(column string, start, end interface{}, limit int) []qm.QueryMod {
|
||||
func generateWhereBetweenQuery(column string, start, end any, limit int) []qm.QueryMod {
|
||||
return []qm.QueryMod{
|
||||
qm.Limit(limit),
|
||||
qm.Where(column+" BETWEEN ? AND ?", start, end),
|
||||
|
||||
@@ -60,7 +60,7 @@ func TestWithdraw(t *testing.T) {
|
||||
config *database.Config
|
||||
runner func(t *testing.T)
|
||||
closer func(dbConn *database.Instance) error
|
||||
output interface{}
|
||||
output any
|
||||
}{
|
||||
{
|
||||
"SQLite-Write",
|
||||
|
||||
Reference in New Issue
Block a user