Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cad5ff6

Browse files
minor fix
1 parent 819f53e commit cad5ff6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

enterprise/coderd/prebuilds/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (c *StoreReconciler) SnapshotState(ctx context.Context, store database.Stor
313313
return xerrors.Errorf("failed to get backoffs for presets: %w", err)
314314
}
315315

316-
hardLimitedPresets, err := db.GetPresetsAtFailureLimit(ctx, c.cfg.FailureHardLimit)
316+
hardLimitedPresets, err := db.GetPresetsAtFailureLimit(ctx, c.cfg.FailureHardLimit.Value())
317317
if err != nil {
318318
return xerrors.Errorf("failed to get hard limited presets: %w", err)
319319
}

enterprise/coderd/prebuilds/reconcile_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ func TestSkippingHardLimitedPresets(t *testing.T) {
679679
clock := quartz.NewMock(t)
680680
ctx := testutil.Context(t, testutil.WaitShort)
681681
cfg := codersdk.PrebuildsConfig{
682-
FailureHardLimit: tc.hardLimit,
682+
FailureHardLimit: serpent.Int64(tc.hardLimit),
683683
}
684684
logger := slogtest.Make(
685685
t, &slogtest.Options{IgnoreErrors: true},

0 commit comments

Comments
 (0)