Skip to content

Commit 18bfca6

Browse files
committed
minor fix
1 parent 26728ec commit 18bfca6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

execution_chain/db/aristo/aristo_compute.nim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ proc computeKeyImpl(
286286
skipLayers = skipLayers,
287287
)
288288
batch.leave(n)
289-
289+
290290
template writeBranch(vtx: BranchRef): HashKey =
291291
encodeBranch(vtx):
292292
if subvid.isValid:
@@ -295,11 +295,14 @@ proc computeKeyImpl(
295295
else:
296296
VOID_HASH_KEY
297297

298+
var encoding: HashKey
298299
if vtx.vType == ExtBranch:
299300
let vtx = ExtBranchRef(vtx)
300-
encodeExt(vtx.pfx):
301+
encoding = encodeExt(vtx.pfx):
301302
writeBranch(vtx)
302303

304+
encoding
305+
303306
# Cache the hash into the same storage layer as the the top-most value that it
304307
# depends on (recursively) - this could be an ephemeral in-memory layer or the
305308
# underlying database backend - typically, values closer to the root are more

0 commit comments

Comments
 (0)