Skip to content

Commit 6135e5d

Browse files
committed
chore: update CI configuration and fix MongoDB connection test
- Modified CI workflow to enhance linting by enabling specific checks while disabling others. - Updated MongoDB connection test to use context.TODO() for improved context management.
1 parent a4d0f97 commit 6135e5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uses: golangci/golangci-lint-action@v3
6262
with:
6363
version: latest
64-
args: --out-format=colored-line-number
64+
args: --out-format=colored-line-number --disable-all --enable=errcheck,staticcheck,govet,gofmt,goimports
6565

6666
- name: Format check
6767
run: |

internal/database/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (m *Manager) testMongoConnection() error {
124124
}
125125

126126
// Test the connection
127-
if err := client.Ping(nil, nil); err != nil {
127+
if err := client.Ping(context.TODO(), nil); err != nil {
128128
return fmt.Errorf("failed to ping MongoDB: %w", err)
129129
}
130130

0 commit comments

Comments
 (0)