Skip to content

Commit

Permalink
add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Oct 26, 2023
1 parent ededff0 commit 4429244
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ class AsyncService(
if (latest != null) {
startDate = latest.timestamp.minusDays(1)
}

val dlobRes = tokenService.getHistoricalFromDlob(startDate) ?: return
logger.info("Updating token historical data starting from $startDate with ${dlobRes.buy.size} buy record for roll-up.")

val baseMap = Interval(startDate, today)
.let { int -> generateSequence(int.start) { dt -> dt.plusDays(1) }.takeWhile { dt -> dt < int.end } }
.map { it to emptyList<DlobHistorical>() }.toMap().toMutableMap()
Expand Down

0 comments on commit 4429244

Please sign in to comment.