send_pipeline_other.go 631 B

12345678910111213
  1. //go:build !darwin && !send_pipeline
  2. package nebula
  3. import "github.com/slackhq/nebula/overlay/tio"
  4. // sendPipelinePlatform is false off darwin: the pipelined send path (interface_pipeline.go) is darwin only for now,
  5. // and listenIn writes its own batches everywhere else. Being a constant, it removes the branch at compile time.
  6. // Build with -tags send_pipeline to run the pipeline, and its tests, on another platform.
  7. const sendPipelinePlatform = false
  8. // listenInPipelined is a plain function rather than a method so this unreachable stub leaves no trace in the binary.
  9. func listenInPipelined(*Interface, tio.Queue, int) {}