summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2021-11-12 18:00:19 +1100
committerGitHub <noreply@github.com>2021-11-12 08:00:19 +0100
commitf8b71f7075b68aefc3955388ad5ec3178aee7658 (patch)
tree739f57c08eef4990f2a3ccf52f9715a5ef4921af /lib
parent3aaa12dbe5796cc55c6161e4d30a70a7f75cb3b5 (diff)
downloadNim-f8b71f7075b68aefc3955388ad5ec3178aee7658.tar.gz
Fix type mismatch with future logging (#19131)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncfutures.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncfutures.nim b/lib/pure/asyncfutures.nim
index 6906d03fd..4782f0a73 100644
--- a/lib/pure/asyncfutures.nim
+++ b/lib/pure/asyncfutures.nim
@@ -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`.