Skip to content

Commit

Permalink
fix: too large tripUpdate batch limit still causing redis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
david-abell committed Apr 10, 2024
1 parent 2243040 commit fd92b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "irish-buses",
"version": "0.7.7",
"version": "0.7.8",
"type": "module",
"scripts": {
"dev": "next dev",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/api/gtfs/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const API_URL =
"https://api.nationaltransport.ie/gtfsr/v2/TripUpdates?format=json";

// const UPSTASH_MAX_REQUEST_BYTES = 1048576;
// const TRIP_UPDATE_BYTES = 1127;
// const TRIP_UPDATE_BYTE_size = 1442;

const BATCH_LIMIT = 800;
const BATCH_LIMIT = 700;

export type RealtimeTripUpdateResponse = {
tripUpdates: [string, TripUpdate][];
Expand Down

0 comments on commit fd92b58

Please sign in to comment.