Skip to content

Commit ec290cc

Browse files
afostrmhanson-github
authored andcommitted
adjusted file sizes + newline
1 parent 527e2c2 commit ec290cc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ let config: Config = {
174174
dataLogWrite: true,
175175
dataLogWriter: {
176176
dirName: 'data-logs',
177-
maxLogFiles: 10,
178-
maxReceiptBytes: 1024 * 1024, // 1MB - Should be >= max TPS * avg receipt size
179-
maxCycleBytes: 50 * 1024, // 50KB - cycles are smaller
180-
maxOriginalTxBytes: 1024 * 1024, // 1MB - Should be >= max TPS * avg tx size
177+
maxLogFiles: 20,
178+
maxReceiptBytes: 10 * 1024 * 1024, // 1MB - Should be >= max TPS * avg receipt size
179+
maxCycleBytes: 10 * 1024 * 1024, // 50KB - cycles are smaller
180+
maxOriginalTxBytes: 10 * 1024 * 1024, // 1MB - Should be >= max TPS * avg tx size
181181
},
182182
experimentalSnapshot: true,
183183
failedBucketsDir: 'failed-buckets',

src/Data/DataLogWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class DataLogWriter {
195195

196196
appendData(data: string): Promise<void> {
197197
// Check if we should continue writing
198-
const canContinueToWrite = this.dataLogWriteStream!.write(data)
198+
const canContinueToWrite = this.dataLogWriteStream!.write(data + '\n')
199199

200200
if (!canContinueToWrite) {
201201
// Wait for drain event to continue writing

0 commit comments

Comments
 (0)