Skip to content

Commit cd191b6

Browse files
committed
fix breaking change in data cache constructor
1 parent 0548972 commit cd191b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/segmentData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const segmentDataCache = new DataCache<VideoID, SegmentResponse>(() => {
1313
segments: null,
1414
status: 200
1515
};
16-
}, 5);
16+
}, undefined, 5);
1717

1818
const pendingList: Record<VideoID, Promise<SegmentResponse>> = {};
1919

@@ -100,4 +100,4 @@ async function fetchSegmentsForVideo(videoID: VideoID): Promise<SegmentResponse>
100100
segments: null,
101101
status: response.status
102102
};
103-
}
103+
}

0 commit comments

Comments
 (0)