about summary refs log tree commit diff stats
path: root/src/io/bufstream.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/bufstream.nim')
-rw-r--r--src/io/bufstream.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/bufstream.nim b/src/io/bufstream.nim
index eb9d6d6b..0558b61c 100644
--- a/src/io/bufstream.nim
+++ b/src/io/bufstream.nim
@@ -1,7 +1,8 @@
+import io/dynstream
 import io/posixstream
 
 type
-  BufStream* = ref object of PosixStream
+  BufStream* = ref object of DynStream
     source*: PosixStream
     registerFun: proc(fd: int)
     registered: bool
@@ -46,7 +47,6 @@ proc flushWrite*(s: BufStream): bool =
 
 proc newBufStream*(ps: PosixStream, registerFun: proc(fd: int)): BufStream =
   result = BufStream(
-    fd: ps.fd,
     source: ps,
     blocking: ps.blocking,
     registerFun: registerFun