From 172a558a194505294d6724c005f35272279e30d9 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 11 Jan 2024 08:00:22 +0100 Subject: [PATCH] Apply suggestions from code review --- threading/channels.nim | 1 - 1 file changed, 1 deletion(-) diff --git a/threading/channels.nim b/threading/channels.nim index a4f99b6..fd826e7 100644 --- a/threading/channels.nim +++ b/threading/channels.nim @@ -210,7 +210,6 @@ proc channelSend(chan: ChannelRaw, data: pointer, size: int, blocking: static bo chan.getHead() - chan.slots copyMem(chan.buffer[writeIdx * size].addr, data, size) - atomicInc(chan.head) if chan.getHead() == 2 * chan.slots: chan.setHead(0)