mirror of
https://github.com/livekit/livekit.git
synced 2026-09-25 09:04:37 +00:00
sync.Pool drops a quarter of returned items when built with -race, so the pooled send path averages about one allocation per packet in CI and the zero-allocation assertion flips between passing and failing. Keep the extension checks and skip only the allocation count under race. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
7 lines
135 B
Go
7 lines
135 B
Go
//go:build !race
|
|
|
|
package utils
|
|
|
|
// RaceEnabled reports whether the binary was built with the race detector.
|
|
const RaceEnabled = false
|