mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-03 22:13:06 +00:00
remove lines carried over from merge
This commit is contained in:
parent
03c221f306
commit
b26b648e90
@ -192,11 +192,11 @@ proc finish(fut: FutureBase, state: FutureState) =
|
||||
# 1. `finish()` is a private procedure and `state` is under our control.
|
||||
# 2. `fut.state` is checked by `checkFinished()`.
|
||||
fut.internalState = state
|
||||
|
||||
when chronosProfiling:
|
||||
if not isNil(onBaseFutureEvent):
|
||||
onBaseFutureEvent(fut, state)
|
||||
when chronosStrictFutureAccess:
|
||||
doAssert fut.internalCancelcb == nil or state != FutureState.Cancelled
|
||||
|
||||
fut.internalCancelcb = nil # release cancellation callback memory
|
||||
for item in fut.internalCallbacks.mitems():
|
||||
if not(isNil(item.function)):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user