mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
remove timepoint map
This commit is contained in:
parent
c20e3fee4b
commit
4b582830f0
|
@ -389,7 +389,6 @@ func (s *BacktestService) FindMissingTimeRanges(ctx context.Context, ex types.Ex
|
|||
}
|
||||
|
||||
var timeRanges []TimeRange
|
||||
var timePoints = make(map[int64]struct{}, 1000) // we can use this to find duplicates
|
||||
var lastTime time.Time
|
||||
var intervalDuration = interval.Duration()
|
||||
for rows.Next() {
|
||||
|
@ -407,7 +406,6 @@ func (s *BacktestService) FindMissingTimeRanges(ctx context.Context, ex types.Ex
|
|||
}
|
||||
|
||||
lastTime = t
|
||||
timePoints[t.Unix()] = struct{}{}
|
||||
}
|
||||
|
||||
return timeRanges, nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user