summaryrefslogtreecommitdiff
path: root/internal/io/fs
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
commit03df87ee9464f6d7a1ca50254dcc5b81d1cf2625 (patch)
tree1554831a5468729aa48c0baf3d5c9a78a8499288 /internal/io/fs
parent8de962836a8d94172f3158628c2f79514d234799 (diff)
add spartan mode
Diffstat (limited to 'internal/io/fs')
-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)