mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix infinite lock at file output
This commit is contained in:
@@ -69,10 +69,8 @@ func NewFileOutput(pathTemplate string, config *FileOutputConfig) *FileOutput {
|
||||
if o.closed {
|
||||
break
|
||||
}
|
||||
o.mu.Lock()
|
||||
o.updateName()
|
||||
o.flush()
|
||||
o.mu.Unlock()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user