Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab27056

Browse files
fix linter
1 parent926a5d1 commitab27056

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎enterprise/coderd/prebuilds/reconcile.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (c *StoreReconciler) ReconcileAll(ctx context.Context) error {
244244
// Reconcile presets in parallel. Each preset in its own goroutine.
245245
for_,preset:=rangesnapshot.Presets {
246246
ifsnapshot.IsHardLimited(preset.ID) {
247-
logger.Debug(ctx,"skipping hard limited preset",slog.F("id",preset.ID),slog.F("name",preset.Name))
247+
logger.Debug(ctx,"skipping hard limited preset",slog.F("preset_id",preset.ID),slog.F("name",preset.Name))
248248
continue
249249
}
250250

@@ -313,10 +313,7 @@ func (c *StoreReconciler) SnapshotState(ctx context.Context, store database.Stor
313313
returnxerrors.Errorf("failed to get backoffs for presets: %w",err)
314314
}
315315

316-
// TODO: make hardLimit configurable
317-
hardLimit:=int64(1)
318-
hardLimit=c.cfg.FailureHardLimit
319-
hardLimitedPresets,err:=db.GetPresetsAtFailureLimit(ctx,hardLimit)
316+
hardLimitedPresets,err:=db.GetPresetsAtFailureLimit(ctx,c.cfg.FailureHardLimit)
320317
iferr!=nil {
321318
returnxerrors.Errorf("failed to get hard limited presets: %w",err)
322319
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp