mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 18:46:52 +01:00
Simplify staged receive batch recycling
This commit is contained in:
1 parent
5bba4de3c6
commit
556b457389
3 files changed
+62
-109
No files matched your search
+1
-1
@@ -426,7 +426,7 @@ func (f *Interface) listenOut(i int) {
|
||||
var err error
|
||||
if hc, ok := li.(handoffConn); ok && f.staged.workers > 0 {
|
||||
// Every stage on its own goroutine, see flow_rx.go. rxc becomes the ordered writer's context.
|
||||
err = newStagedRx(f, i, rxc).listen(hc)
|
||||
err = newStagedRx(f, i, rxc, hc).listen()
|
||||
} else {
|
||||
if f.staged.workers > 0 {
|
||||
f.l.Info("udp conn cannot hand off receive batches, receive stays inline", "reader", i)
|
||||
|
||||
Reference in new issue
Block a user