Skip to content

Commit

Permalink
Merge pull request #80 from alpacahq/fix/polygon-cleanup
Browse files Browse the repository at this point in the history
polygon plugin cleanup
  • Loading branch information
rocketbitz authored Jun 19, 2018
2 parents 91b7410 + 440d388 commit 3be1354
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/polygon/polygon.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ func (pf *PolygonFetcher) backfill(symbol string, endEpoch int64) {
return
}

glog.Infof("backfilling %v from %v to %v",
symbol, time.Unix(epoch[len(epoch)-1], 0),
time.Unix(endEpoch, 0))

from = time.Unix(epoch[len(epoch)-1], 0)

} else {
Expand All @@ -202,6 +198,10 @@ func (pf *PolygonFetcher) backfill(symbol string, endEpoch int64) {
return
}

if len(resp.Ticks) == 0 {
return
}

csm := io.NewColumnSeriesMap()

epoch := make([]int64, len(resp.Ticks))
Expand Down

0 comments on commit 3be1354

Please sign in to comment.