Skip to content

Commit 7f7765f

Browse files
e2bclaude
authored andcommitted
fix: restore deviceIndex sentinel value (math.MaxUint32)
The MaxUint32 initialization was intentional as a sentinel value. Reverting the unnecessary change per review feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 43aa820 commit 7f7765f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/orchestrator/pkg/sandbox/nbd/path_direct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (d *DirectPathMount) Open(ctx context.Context) (retDeviceIndex uint32, err
7878

7979
telemetry.ReportEvent(ctx, "got backend size")
8080

81-
var deviceIndex uint32
81+
deviceIndex := uint32(math.MaxUint32)
8282

8383
for {
8484
deviceIndex, err = d.devicePool.GetDevice(ctx)

0 commit comments

Comments
 (0)