Skip to content

Commit

Permalink
Allow to pass lake base dir to build index script
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Mar 15, 2024
1 parent 126e459 commit 4048ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build-raw-near-lake-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ async function main() {

const startBlockNumber = startAfter ? parseInt(startAfter, 10) : 0;
const endBlockNumber = startBlockNumber + parseInt(limit, 10);
const dstDir = `./lake-data/${bucketName}`;
const lakeDir = process.env.FAST_NEAR_LAKE_DIR || './lake-data';
const dstDir = `${lakeDir}/${bucketName}`;
const blobDir = `${dstDir}/blob`;
await mkdir(blobDir, { recursive: true });
// TODO: Should index smth from 'block' as well? (e.g. block.header.timestamp)
Expand Down

0 comments on commit 4048ff1

Please sign in to comment.