Skip to content

Commit da8d503

Browse files
committed
add more tests - fix compile for trySend
1 parent 1d52625 commit da8d503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

threading/channels.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ proc trySend*[T](c: Chan[T], src: sink Isolated[T]): bool {.inline.} =
322322
##
323323
## Returns `false` if the message was not sent because the number of pending
324324
## messages in the channel exceeded its capacity.
325-
result = channelSend(c.d, src.addr, sizeof(T), false)
325+
result = channelSend(c.d, src.addr, sizeof(T), false, false)
326326
if result:
327327
wasMoved(src)
328328

@@ -350,7 +350,7 @@ proc tryTake*[T](c: Chan[T], src: var Isolated[T]): bool {.inline.} =
350350
##
351351
## Returns `false` if the message was not sent because the number of pending
352352
## messages in the channel exceeded its capacity.
353-
result = channelSend(c.d, src.addr, sizeof(T), false)
353+
result = channelSend(c.d, src.addr, sizeof(T), false, false)
354354
if result:
355355
wasMoved(src)
356356

0 commit comments

Comments
 (0)