Skip to content

Commit 8687425

Browse files
authored
fix: eliminate busy loop in persistenceThread (#475)
1 parent 1d879a4 commit 8687425

File tree

6 files changed

+303
-46
lines changed

6 files changed

+303
-46
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"[typescript]": {
1313
"editor.codeActionsOnSave": {
14-
"source.organizeImports": true
14+
"source.organizeImports": "explicit"
1515
}
1616
},
1717
"editor.rulers": [

src/lib/db.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ describe("lib/db", () => {
11321132
});
11331133

11341134
it("..., but only above the minimum size", async () => {
1135-
await retry(5, async () => {
1135+
await retry(1, async () => {
11361136
db = new JsonlDB(testFilenameFull, {
11371137
autoCompress: {
11381138
sizeFactor: 4,
@@ -1752,7 +1752,6 @@ describe("lib/db", () => {
17521752
await testFS.create({
17531753
[testFilename]: ``,
17541754
});
1755-
console.log(testFilenameFull);
17561755

17571756
db = new JsonlDB(testFilenameFull, {
17581757
enableTimestamps: true,
@@ -1776,7 +1775,7 @@ describe("lib/db", () => {
17761775
`,
17771776
);
17781777
});
1779-
}, 120000);
1778+
});
17801779

17811780
it("should be parsed from the db file", async () => {
17821781
await retry(3, async () => {

0 commit comments

Comments
 (0)