Skip to content

Commit

Permalink
disable tracing in OplogMessage until we use it (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh authored Mar 29, 2024
1 parent a2d8de5 commit b14bc8f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ const AdditionalData = {
}
}

const Trace = c.array(c.uint)

const OplogMessage = {
preencode (state, m) {
c.uint.preencode(state, m.version)
Expand All @@ -262,7 +260,6 @@ const OplogMessage = {
}

Node.preencode(state, m.node)
Trace.preencode(state, m.trace)
},
encode (state, m) {
c.uint.encode(state, m.version)
Expand All @@ -281,7 +278,6 @@ const OplogMessage = {
}

Node.encode(state, m.node)
Trace.encode(state, m.trace)
},
decode (state) {
const version = c.uint.decode(state)
Expand All @@ -294,8 +290,7 @@ const OplogMessage = {
maxSupportedVersion: m.maxSupportedVersion,
digest: null,
checkpoint: m.checkpoint,
node: m.node,
trace: []
node: m.node
}
}

Expand All @@ -309,15 +304,13 @@ const OplogMessage = {
const digest = isCheckpointer ? Digest.decode(state) : null

const node = Node.decode(state)
const trace = Trace.decode(state)

return {
version,
maxSupportedVersion,
digest,
checkpoint,
node,
trace
node
}
}
}
Expand Down

0 comments on commit b14bc8f

Please sign in to comment.