Skip to content

Commit 59ec7cf

Browse files
authored
fix: missing logMessages import in ParitySystem (#354)
* fix missing import * fix(lint): fix recent prettier update changes
1 parent 930563c commit 59ec7cf

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

lib/SerializerAppend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ class AppendSerializer {
487487
}
488488

489489
const blockCount = Math.ceil(
490-
(activeTable.nextByte % activeTable.logSize + contentLength) /
490+
((activeTable.nextByte % activeTable.logSize) + contentLength) /
491491
activeTable.logSize,
492492
);
493493
let nextByte = activeTable.nextByte;
@@ -500,7 +500,7 @@ class AppendSerializer {
500500
bufferIndex,
501501
Math.min(
502502
bufferIndex +
503-
(activeTable.logSize - nextByte % activeTable.logSize),
503+
(activeTable.logSize - (nextByte % activeTable.logSize)),
504504
contentLength,
505505
),
506506
);

lib/SerializerCacache.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ class CacacheSerializer {
99
const cache = {};
1010
const promises = [];
1111
return new Promise((resolve, reject) => {
12-
cacache.ls
13-
.stream(this.path)
12+
cacache.ls.stream(this.path)
1413
.on('data', ({ key }) => {
1514
promises.push(
1615
cacache.get(this.path, key).then(({ data }) => {

lib/SerializerLeveldb.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class LevelDbSerializer {
1818
db =>
1919
new Promise((resolve, reject) => {
2020
const dbClose = promisify(db.close, { context: db });
21-
db
22-
.createReadStream()
21+
db.createReadStream()
2322
.on('data', data => {
2423
const value = data.value;
2524
if (!moduleCache[data.key]) {

lib/SystemParity.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const pluginCompat = require('./util/plugin-compat');
2+
const logMessages = require('./util/log-messages');
23
const { ParityRoot } = require('./util/parity');
34

45
class ParitySystem {

0 commit comments

Comments
 (0)