Skip to content

Commit

Permalink
lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Sep 20, 2023
1 parent 3968da6 commit 6d5d0cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codetests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
- name: go-test
run: |
go test ./...
Expand All @@ -40,8 +40,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: 'v1.52'
version: 'v1.53'
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*' ]
pull_request:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ linters:
- exhaustruct
- exhaustive
- nlreturn
- tagalign
- depguard

run:
timeout: 5m
2 changes: 1 addition & 1 deletion mulery.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (c *Config) Start() {
apache, _ := apachelog.New(c.ApacheLogFormat())

smx.Handle("/metrics", apache.Wrap(c.ValidateUpstream(promhttp.Handler()), c.httpLog.Writer()))
smx.Handle("/register", c.dispatch.HandleRegister()) // apache log can't do websockets.
smx.Handle("/stats", apache.Wrap(c.ValidateUpstream(http.HandlerFunc(c.dispatch.HandleStats)), c.httpLog.Writer()))
smx.Handle("/register", c.dispatch.HandleRegister()) // apache log can't do websockets.
smx.Handle("/request", apache.Wrap(http.HandlerFunc(c.HandleAll), c.httpLog.Writer())) // handleAll
smx.Handle("/request/", apache.Wrap(http.StripPrefix("/request",
c.ValidateUpstream(c.parsePath())), c.httpLog.Writer()))
Expand Down

0 comments on commit 6d5d0cc

Please sign in to comment.