Skip to content

Commit 1d0b3b7

Browse files
committed
minor fix
1 parent 26728ec commit 1d0b3b7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

execution_chain/db/aristo/aristo_compute.nim

Lines changed: 7 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,10 +295,15 @@ 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)
303+
else:
304+
encoding = writeBranch(vtx)
305+
306+
encoding
302307

303308
# Cache the hash into the same storage layer as the the top-most value that it
304309
# depends on (recursively) - this could be an ephemeral in-memory layer or the

0 commit comments

Comments
 (0)