Skip to content

Commit 41c957d

Browse files
committed
fixup
1 parent 69c0d46 commit 41c957d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

enterprise/coderd/coderd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ func TestConn_CoordinatorRollingRestart(t *testing.T) {
677677
//
678678
// Direct connections should be able to transmit packets throughout the
679679
// restart without issue.
680+
//nolint:paralleltest // Outdated rule
680681
for _, direct := range []bool{true, false} {
681-
direct := direct
682682
name := "DERP"
683683
if direct {
684684
name = "Direct"

enterprise/tailnet/pgcoord.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ func newBinder(ctx context.Context,
506506

507507
b.logger.Debug(b.ctx, "updating peers to lost")
508508

509-
//nolint:gocritic // provisioner is system
510-
ctx, cancel := context.WithTimeout(dbauthz.AsSystemRestricted(context.Background()), time.Second*15)
509+
ctx, cancel := context.WithTimeout(dbauthz.As(context.Background(), pgCoordSubject), time.Second*15)
511510
defer cancel()
512511
err := b.store.UpdateTailnetPeerStatusByCoordinator(ctx, database.UpdateTailnetPeerStatusByCoordinatorParams{
513512
CoordinatorID: b.coordinatorID,

0 commit comments

Comments
 (0)