Skip to content

Commit

Permalink
fix: buffer scheduler with 1s delays
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Feb 26, 2024
1 parent 7215ddd commit 6140d95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/populator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Logger } from "pino";
import { SearcherBuilder } from "../domain/searcher/builder.ts";
import { addDays, differenceInDays } from "date-fns";
import { RetrieveResult } from "./interfaces.ts";
import { __ } from "../utility.ts";

class Populator {
constructor(
Expand Down Expand Up @@ -31,6 +32,8 @@ class Populator {
const j2w = await searcher.Search("JToW", currentDate);
const w2j = await searcher.Search("WToJ", currentDate);

await __(1);

const j2wR = j2w.map((s) => `${s.departure_time}:00`);
const w2jR = w2j.map((s) => `${s.departure_time}:00`);
ret.push({
Expand Down

0 comments on commit 6140d95

Please sign in to comment.