mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-19 15:10:05 +00:00
build/linters: Bump Go to v1.25 and golangci-lint to v2.4.0 (#2005)
* build/linters: Bump Go to v1.25 and golangci-lint to v2.4.0 * refactor: Update TODO comments for net.Listen and net.DialTimeout; improve variable naming in websocket and exchange methods * refactor: Rename massageMissingData to backfillMissingData for clarity and update references in RSI and MFI calculations * fix: Correct typo in TODO comment for net.Listen in RPC server
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
// Event inserts a new script event into database with execution details (script name time status hash of script)
|
||||
func Event(id, name, path string, data null.Bytes, executionType, status string, time time.Time) {
|
||||
func Event(id, name, path string, data null.Bytes, executionType, status string, tm time.Time) {
|
||||
if database.DB.SQL == nil {
|
||||
return
|
||||
}
|
||||
@@ -68,7 +68,7 @@ func Event(id, name, path string, data null.Bytes, executionType, status string,
|
||||
|
||||
tempScriptExecution := &modelSQLite.ScriptExecution{
|
||||
ScriptID: id,
|
||||
ExecutionTime: time.UTC().String(),
|
||||
ExecutionTime: tm.UTC().String(),
|
||||
ExecutionStatus: status,
|
||||
ExecutionType: executionType,
|
||||
}
|
||||
@@ -99,7 +99,7 @@ func Event(id, name, path string, data null.Bytes, executionType, status string,
|
||||
}
|
||||
|
||||
tempScriptExecution := &modelPSQL.ScriptExecution{
|
||||
ExecutionTime: time.UTC(),
|
||||
ExecutionTime: tm.UTC(),
|
||||
ExecutionStatus: status,
|
||||
ExecutionType: executionType,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user