Skip to content

Commit

Permalink
fix: missing logMessages import in ParitySystem (#354)
Browse files Browse the repository at this point in the history
* fix missing import

* fix(lint): fix recent prettier update changes
  • Loading branch information
mzgoddard committed May 28, 2018
1 parent 930563c commit 59ec7cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/SerializerAppend.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class AppendSerializer {
}

const blockCount = Math.ceil(
(activeTable.nextByte % activeTable.logSize + contentLength) /
((activeTable.nextByte % activeTable.logSize) + contentLength) /
activeTable.logSize,
);
let nextByte = activeTable.nextByte;
Expand All @@ -500,7 +500,7 @@ class AppendSerializer {
bufferIndex,
Math.min(
bufferIndex +
(activeTable.logSize - nextByte % activeTable.logSize),
(activeTable.logSize - (nextByte % activeTable.logSize)),
contentLength,
),
);
Expand Down
3 changes: 1 addition & 2 deletions lib/SerializerCacache.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class CacacheSerializer {
const cache = {};
const promises = [];
return new Promise((resolve, reject) => {
cacache.ls
.stream(this.path)
cacache.ls.stream(this.path)
.on('data', ({ key }) => {
promises.push(
cacache.get(this.path, key).then(({ data }) => {
Expand Down
3 changes: 1 addition & 2 deletions lib/SerializerLeveldb.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class LevelDbSerializer {
db =>
new Promise((resolve, reject) => {
const dbClose = promisify(db.close, { context: db });
db
.createReadStream()
db.createReadStream()
.on('data', data => {
const value = data.value;
if (!moduleCache[data.key]) {
Expand Down
1 change: 1 addition & 0 deletions lib/SystemParity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const pluginCompat = require('./util/plugin-compat');
const logMessages = require('./util/log-messages');
const { ParityRoot } = require('./util/parity');

class ParitySystem {
Expand Down

0 comments on commit 59ec7cf

Please sign in to comment.