mirror of
https://github.com/slackhq/nebula.git
synced 2026-08-16 00:17:03 +02:00
stop trying to interpret TCP, reorder via message counter and hostinfo-creation-order
This commit is contained in:
@@ -17,7 +17,15 @@ func NewPassthrough(w io.Writer) *Passthrough {
|
||||
}
|
||||
}
|
||||
|
||||
func (p *Passthrough) Commit(pkt []byte) error {
|
||||
// Commit ignores the sort key: a bare Passthrough (no MultiCoalescer in
|
||||
// front) emits in arrival order, exactly as before keys existed.
|
||||
func (p *Passthrough) Commit(pkt []byte, _ SortKey) error {
|
||||
return p.enqueue(pkt)
|
||||
}
|
||||
|
||||
// enqueue is the lane-facing half of Commit: MultiCoalescer.dispatch hands
|
||||
// packets here already sorted into transmission order.
|
||||
func (p *Passthrough) enqueue(pkt []byte) error {
|
||||
p.slots = append(p.slots, pkt)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user