Skip to content

Commit b28a526

Browse files
autofix-ci[bot]Flo4604
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 0448a3a commit b28a526

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

cmd/dev/seed/local.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ func seedLocal(ctx context.Context, cmd *cli.Command) error {
220220
AuditLogsRetentionDays: 30,
221221
LogsRetentionDays: 7,
222222
Team: false,
223-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
224-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
223+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
224+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
225225
},
226226
{
227227
WorkspaceID: rootWorkspaceID,
228228
RequestsPerMonth: 150000,
229229
AuditLogsRetentionDays: 30,
230230
LogsRetentionDays: 7,
231231
Team: false,
232-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
233-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
232+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
233+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
234234
},
235235
})
236236
if err != nil {

svc/api/internal/testutil/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ func (h *Harness) SetupAnalytics(workspaceID string, opts ...SetupAnalyticsOptio
463463
AuditLogsRetentionDays: config.RetentionDays,
464464
RequestsPerMonth: 1_000_000,
465465
Team: false,
466-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
467-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
466+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
467+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
468468
})
469469
require.NoError(h.t, err)
470470

svc/api/routes/v2_analytics_get_verifications/503_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func Test503_ClickHouseConnectionFailure(t *testing.T) {
2828
AuditLogsRetentionDays: 30,
2929
RequestsPerMonth: 1_000_000,
3030
Team: false,
31-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
32-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
31+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
32+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
3333
})
3434
require.NoError(t, err)
3535

svc/api/routes/v2_ratelimit_get_override/429_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func TestWorkspaceRateLimit_NullFields_Unlimited(t *testing.T) {
5757
AuditLogsRetentionDays: 30,
5858
LogsRetentionDays: 30,
5959
Team: false,
60-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
61-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
60+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
61+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
6262
})
6363
require.NoError(t, err)
6464

@@ -96,8 +96,8 @@ func TestWorkspaceRateLimit_ZeroLimit_Returns429(t *testing.T) {
9696
AuditLogsRetentionDays: 30,
9797
LogsRetentionDays: 30,
9898
Team: false,
99-
RatelimitApiLimit: sql.NullInt32{Valid: true, Int32: 0},
100-
RatelimitApiDuration: sql.NullInt32{Valid: true, Int32: 60000},
99+
RatelimitApiLimit: sql.NullInt32{Valid: true, Int32: 0},
100+
RatelimitApiDuration: sql.NullInt32{Valid: true, Int32: 60000},
101101
})
102102
require.NoError(t, err)
103103

@@ -136,8 +136,8 @@ func TestWorkspaceRateLimit_EnforcesLimit(t *testing.T) {
136136
AuditLogsRetentionDays: 30,
137137
LogsRetentionDays: 30,
138138
Team: false,
139-
RatelimitApiLimit: sql.NullInt32{Valid: true, Int32: 2},
140-
RatelimitApiDuration: sql.NullInt32{Valid: true, Int32: 60000},
139+
RatelimitApiLimit: sql.NullInt32{Valid: true, Int32: 2},
140+
RatelimitApiDuration: sql.NullInt32{Valid: true, Int32: 60000},
141141
})
142142
require.NoError(t, err)
143143

svc/ctrl/integration/seed/seed.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ func (s *Seeder) CreateWorkspaceWithQuota(ctx context.Context, req CreateWorkspa
658658
AuditLogsRetentionDays: req.AuditLogsRetentionDays,
659659
LogsRetentionDays: req.LogsRetentionDays,
660660
Team: req.Team,
661-
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
662-
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
661+
RatelimitApiLimit: sql.NullInt32{}, //nolint:exhaustruct
662+
RatelimitApiDuration: sql.NullInt32{}, //nolint:exhaustruct
663663
})
664664
require.NoError(s.t, err)
665665
}

0 commit comments

Comments
 (0)