fix: resolve CI failures for ELF-231 merge
- Format cmd/loadtest/main.go with gofmt - Downgrade go.mod to go 1.24 for golangci-lint compatibility - Update CI workflow Go version to 1.24 - Fix deprecated govet check-shadowing → shadow Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
6811b86d7f
commit
6d4cd04268
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.25'
|
||||
go-version: '1.24'
|
||||
cache: true
|
||||
|
||||
- name: Check formatting
|
||||
@ -56,7 +56,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.25'
|
||||
go-version: '1.24'
|
||||
cache: true
|
||||
|
||||
- name: Run golangci-lint
|
||||
|
||||
@ -19,7 +19,8 @@ linters-settings:
|
||||
check-type-assertions: true
|
||||
check-blank: true
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable:
|
||||
- shadow
|
||||
revive:
|
||||
rules:
|
||||
- name: blank-imports
|
||||
|
||||
@ -96,4 +96,4 @@ func main() {
|
||||
fmt.Printf("Max latency: %.2f ms\n", float64(atomic.LoadInt64(&maxLatency))/1000)
|
||||
fmt.Printf("Requests/sec: %.2f\n", float64(*total)/duration.Seconds())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user