bbgo: rename AddBackLog to BackFill

This commit is contained in:
c9s 2023-06-30 10:38:38 +08:00
parent 064932ea9d
commit 9885a68537
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func (i *IndicatorSet) KLines(interval types.Interval) *indicator.KLineStream {
kLines := indicator.KLines(i.stream, i.Symbol, interval) kLines := indicator.KLines(i.stream, i.Symbol, interval)
if kLinesWindow, ok := i.store.KLinesOfInterval(interval); ok { if kLinesWindow, ok := i.store.KLinesOfInterval(interval); ok {
kLines.AddBackLog(*kLinesWindow) kLines.BackFill(*kLinesWindow)
} else { } else {
logrus.Warnf("market data store %s kline history not found, unable to backfill the kline stream data", interval) logrus.Warnf("market data store %s kline history not found, unable to backfill the kline stream data", interval)
} }

View File

@ -36,7 +36,7 @@ func (s *KLineStream) AddSubscriber(f func(k types.KLine)) {
} }
} }
func (s *KLineStream) AddBackLog(kLines []types.KLine) { func (s *KLineStream) BackFill(kLines []types.KLine) {
s.kLines = append(s.kLines, kLines...) s.kLines = append(s.kLines, kLines...)
} }