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:
Dody Suria Wijaya
2022-02-12 10:10:54 +03:00
committed by GitHub
co-authored by Dody Suria Wijaya
parent a5f5615156
commit a4962b5d2d
+2 -2
View File
@@ -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
}