summaryrefslogtreecommitdiff
path: root/internal/io
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-09-18 14:41:25 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:29 +0300
commit6506e20f6c80f4acb7434eb9dd14f784a67189cd (patch)
tree1554831a5468729aa48c0baf3d5c9a78a8499288 /internal/io
parent7fbea88cf55af9b3354b4a1334e49c38d0d920fc (diff)
add spartan mode
Diffstat (limited to 'internal/io')
-rw-r--r--internal/io/fs/readfile.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/io/fs/readfile.go b/internal/io/fs/readfile.go
index c0d44dd..ec33c60 100644
--- a/internal/io/fs/readfile.go
+++ b/internal/io/fs/readfile.go
@@ -182,11 +182,14 @@ func (f readFile) read(ctx context.Context, fd *os.File, rawLines chan *bytes.Bu
switch b {
case '\n':
- if message.Len() == 0 {
- time.Sleep(time.Millisecond * 100)
- continue
- }
- message.WriteString("\n")
+ /*
+ // dcat/dgrep should actually transfer empty lines
+ if message.Len() == 0 {
+ time.Sleep(time.Millisecond * 100)
+ continue
+ }
+ */
+ //message.WriteString("\n")
select {
case rawLines <- message:
message = pool.BytesBuffer.Get().(*bytes.Buffer)