mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
fix swapped rtt parameter (#1053)
Co-authored-by: Dody Suria Wijaya <dodysw@gmail.com> fix small bug that caused output_binary rtt and start time to be swapped
This commit is contained in:
co-authored by
Dody Suria Wijaya
parent
a5f5615156
commit
a4962b5d2d
+2
-2
@@ -25,8 +25,8 @@ const (
|
||||
type response struct {
|
||||
payload []byte
|
||||
uuid []byte
|
||||
roundTripTime int64
|
||||
startedAt int64
|
||||
roundTripTime int64
|
||||
}
|
||||
|
||||
// HTTPOutputConfig struct for holding http output configuration
|
||||
@@ -206,7 +206,7 @@ func (o *HTTPOutput) PluginRead() (*Message, error) {
|
||||
msg.Data = resp.payload
|
||||
}
|
||||
|
||||
msg.Meta = payloadHeader(ReplayedResponsePayload, resp.uuid, resp.roundTripTime, resp.startedAt)
|
||||
msg.Meta = payloadHeader(ReplayedResponsePayload, resp.uuid, resp.startedAt, resp.roundTripTime)
|
||||
|
||||
return &msg, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user