mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
fixed file input sleep timer
This commit is contained in:
+1
-1
@@ -58,8 +58,8 @@ func (i *FileInput) emit() {
|
||||
|
||||
if lastTime != 0 {
|
||||
time.Sleep(time.Duration(raw.Timestamp - lastTime))
|
||||
lastTime = raw.Timestamp
|
||||
}
|
||||
lastTime = raw.Timestamp
|
||||
|
||||
i.data <- raw.Request
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user