Skip to content

Commit

Permalink
Bump go version
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao committed Dec 12, 2024
1 parent 0e31ed1 commit f1e8610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
extra_args: --only-verified

- name: Setup Go 1.22
uses: actions/setup-go@v5
- name: Setup Go 1.23
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: '1.22.3'
go-version-file: "go.mod"

- name: Run golangci-lint
if: ${{ github.event_name == 'pull_request' && !contains(env.head_commit_message, '#skip-lint') }}
Expand Down
2 changes: 2 additions & 0 deletions export_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func (h *ExportHandler) Enabled(ctx context.Context, level slog.Level) bool {
func (h *ExportHandler) Handle(ctx context.Context, record slog.Record) error {
if record.Level >= h.cfg.MinLevel {
select {
case <-ctx.Done():
return ctx.Err()
case h.ch <- record:
default:
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/castai/logging

go 1.22.3
go 1.23.2

require (
github.com/stretchr/testify v1.9.0
Expand Down

0 comments on commit f1e8610

Please sign in to comment.