mirror of
https://github.com/status-im/nim-rlp.git
synced 2025-02-28 05:30:28 +00:00
add a comment for a possible future optimization
This commit is contained in:
parent
f481a72bbb
commit
c4b56ca553
@ -244,6 +244,7 @@ proc initRlpList*(listSize: int): RlpWriter =
|
|||||||
result = initRlpWriter()
|
result = initRlpWriter()
|
||||||
startList(result, listSize)
|
startList(result, listSize)
|
||||||
|
|
||||||
|
# TODO: This should return a lent value
|
||||||
proc finish*(self): seq[byte] =
|
proc finish*(self): seq[byte] =
|
||||||
if pendingLists.len > 0:
|
if pendingLists.len > 0:
|
||||||
raise newException(PrematureFinalizationError,
|
raise newException(PrematureFinalizationError,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user