summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/semasgn.nim2
-rw-r--r--lib/pure/asyncdispatch.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semasgn.nim b/compiler/semasgn.nim
index db08605cf..67af6ade7 100644
--- a/compiler/semasgn.nim
+++ b/compiler/semasgn.nim
@@ -261,7 +261,7 @@ proc addParam(procType: PType; param: PSym) =
   rawAddSon(procType, param.typ)
 
 proc liftBody(c: PContext; typ: PType; kind: TTypeAttachedOp;
-              info: TLineInfo): PSym {.discardable.} =
+              info: TLineInfo): PSym =
   var a: TLiftCtx
   a.info = info
   a.c = c
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index 23eb80b37..b62cf2e9b 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -1493,7 +1493,7 @@ proc poll*(timeout = 500) =
   ## Waits for completion events and processes them. Raises ``ValueError``
   ## if there are no pending operations. This runs the underlying OS
   ## `epoll`:idx: or `kqueue`:idx: primitive only once.
-  discard runOnce()
+  discard runOnce(timeout)
 
 # Common procedures between current and upcoming asyncdispatch
 include includes.asynccommon