This commit is contained in:
Leonid Bugaev
2016-06-29 17:29:09 +03:00
parent f2ff542cea
commit 37650df2c8
12 changed files with 187 additions and 164 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func NewTestInput() (i *TestInput) {
func (i *TestInput) Read(data []byte) (int, error) {
buf := <-i.data
header := payloadHeader(RequestPayload, uuid(), time.Now().UnixNano())
header := payloadHeader(RequestPayload, uuid(), time.Now().UnixNano(), -1)
copy(data[0:len(header)], header)
copy(data[len(header):], buf)