mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
service: pull out record to a var
This commit is contained in:
parent
3ad1f0e351
commit
1587630b7b
|
@ -171,7 +171,8 @@ func lastRecordTime(sel SyncTask, recordSlice reflect.Value, defaultTime time.Ti
|
|||
since := defaultTime
|
||||
length := recordSlice.Len()
|
||||
if length > 0 {
|
||||
since = sel.Time(recordSlice.Index(length - 1).Interface())
|
||||
last := recordSlice.Index(length - 1)
|
||||
since = sel.Time(last)
|
||||
}
|
||||
|
||||
return since
|
||||
|
|
Loading…
Reference in New Issue
Block a user