chg: [inputreader] adds \n on each line

master v0.1.4
Jean-Louis Huynen 2020-05-25 16:48:18 +02:00
parent 2364985add
commit 42a8154142
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func (rl *RedisLPOPReader) Read(p []byte) (n int, err error) {
} else if err != nil {
return 0, err
}
buf = append(buf, "\n"...)
rreader := bytes.NewReader(buf)
n, err = rreader.Read(p)
return n, err