Fix type mismatch with future logging (#19131)

This commit is contained in:
Jake Leahy 2021-11-12 18:00:19 +11:00 • committed by GitHub
commit f8b71f7075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,7 +225,7 @@ proc complete*[T](future: FutureVar[T], val: T) =
fut.finished = true
fut.value = val
fut.callbacks.call()
when isFutureLoggingEnabled: logFutureFinish(future)
when isFutureLoggingEnabled: logFutureFinish(fut)
proc fail*[T](future: Future[T], error: ref Exception) =
## Completes `future` with `error`.