mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
stackless: send "func done" notification over a buffered channel, so the funcWorker could process multiple work items without switching to other goroutines
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ func getFuncWork() *funcWork {
|
||||
v := funcWorkPool.Get()
|
||||
if v == nil {
|
||||
v = &funcWork{
|
||||
done: make(chan struct{}),
|
||||
done: make(chan struct{}, 1),
|
||||
}
|
||||
}
|
||||
return v.(*funcWork)
|
||||
|
||||
Reference in New Issue
Block a user