diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-02 13:44:27 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-02 19:03:12 +0300 |
| commit | 86ec83754e0ee7153ad55091f7b6da448bc529c5 (patch) | |
| tree | 155687b0addb21a97a10a5ebb77928fadc3c62c3 /internal/io/fs | |
| parent | 12c79f68bb5bda6673819d7b754820ecfe6d08ff (diff) | |
add dcat test
Diffstat (limited to 'internal/io/fs')
| -rw-r--r-- | internal/io/fs/readfile.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/io/fs/readfile.go b/internal/io/fs/readfile.go index 07486a1..f128c07 100644 --- a/internal/io/fs/readfile.go +++ b/internal/io/fs/readfile.go @@ -13,8 +13,8 @@ import ( "sync" "time" - "github.com/mimecast/dtail/internal/io/line" "github.com/mimecast/dtail/internal/io/dlog" + "github.com/mimecast/dtail/internal/io/line" "github.com/mimecast/dtail/internal/io/pool" "github.com/mimecast/dtail/internal/regex" @@ -182,14 +182,6 @@ func (f readFile) read(ctx context.Context, fd *os.File, rawLines chan *bytes.Bu switch b { case '\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) |
