about summary refs log tree commit diff stats
path: root/src/local/container.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-21 02:03:18 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-21 02:06:19 +0100
commit1d660ce00967c2a457158eae85dd82247c2ae396 (patch)
tree76a7bd72959103ae04d3b472ef5e21fd428b5ad5 /src/local/container.nim
parent17969768a30467c2f873a51178aea1428f83f4bc (diff)
downloadchawan-1d660ce00967c2a457158eae85dd82247c2ae396.tar.gz
buffer: also buffer input reads
this is buffer reading from pager
Diffstat (limited to 'src/local/container.nim')
-rw-r--r--src/local/container.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 41cc2efd..c44a9bc7 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -1586,11 +1586,9 @@ proc handleCommand(container: Container) =
   container.iface.resolve(packetid, len - slen(packetid))
 
 proc setStream*(container: Container; stream: SocketStream;
-    registerFun: proc(fd: int); fd: FileHandle; outCacheId: int) =
+    registerFun: proc(fd: int)) =
   assert cfCloned notin container.flags
   container.iface = newBufferInterface(stream, registerFun)
-  container.iface.passFd(fd, outCacheId)
-  discard close(fd)
   discard container.iface.load().then(proc(res: int) =
     container.onload(res)
   )