From e4143b9d202d6f7964a7c082f68707199c013f7d Mon Sep 17 00:00:00 2001 From: Denys Sedchenko Date: Thu, 18 Jul 2024 11:07:17 -0400 Subject: [PATCH] fix: Update internal/js/reader.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jerónimo Albi --- internal/js/reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/js/reader.go b/internal/js/reader.go index 384b361..f1d14f7 100644 --- a/internal/js/reader.go +++ b/internal/js/reader.go @@ -20,6 +20,7 @@ type ChannelReader struct { func NewChannelReader(source <-chan []byte, cancelFn context.CancelFunc) *ChannelReader { return &ChannelReader{ source: source, + cancelFn: cancelFn, } }