mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 16:07:16 -05:00
save some goroutines
This commit is contained in:
parent
65a49e7fa0
commit
ed780951aa
@ -44,7 +44,7 @@ func (this *BufferedSegmentWriter) Write(seg Segment) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *BufferedSegmentWriter) FlushWithoutLock() {
|
func (this *BufferedSegmentWriter) FlushWithoutLock() {
|
||||||
go this.writer.Write(this.buffer)
|
this.writer.Write(this.buffer)
|
||||||
this.buffer = nil
|
this.buffer = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user