mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
copy data buffer
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ func (o *TCPOutput) worker() {
|
||||
|
||||
func (o *TCPOutput) Write(data []byte) (n int, err error) {
|
||||
new_buf := make([]byte, len(data) + 2)
|
||||
append(data, []byte("¶")...)
|
||||
data = append(data,[]byte("¶")...)
|
||||
copy(new_buf, data)
|
||||
o.buf <- new_buf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user