mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
gvisor: set type for all TraceBlockReason constants
Currently, the gvisor nogo checks are failing with this error: gvisor/pkg/sync/runtime_exectracer2.go:21:2: only the first constant in this group has an explicit type I don’t know why the constants in runtime_exectracer1.go do not seem to trigger this error, but either way, the fix is simple enough. PiperOrigin-RevId: 588412325
This commit is contained in:
@@ -19,5 +19,5 @@ package sync
|
||||
// TraceBlockReason constants, from Go's src/runtime/trace2runtime.go.
|
||||
const (
|
||||
TraceBlockSelect TraceBlockReason = 3 // +checkconst runtime traceBlockSelect
|
||||
TraceBlockSync = 5 // +checkconst runtime traceBlockSync
|
||||
TraceBlockSync TraceBlockReason = 5 // +checkconst runtime traceBlockSync
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user