Skip to content

Commit

Permalink
chore: Go 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Aug 4, 2022
1 parent b1c2596 commit a6344e3
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go 1.18
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19

- name: Run linter
uses: golangci/[email protected] # Action page: <https://github.com/golangci/golangci-lint-action>
with:
version: v1.47 # without patch version
version: v1.48 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --timeout=10m
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: true
matrix:
go: ["1.18"]
go: ["1.19"]
os: ["ubuntu-latest", "macos-latest"]
steps:
- name: Set up Go ${{ matrix.go }}
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Documentation: <https://github.com/golangci/golangci-lint#config-file>

run:
go: '1.17'
timeout: 1m
skip-dirs:
- .github
Expand Down
1 change: 0 additions & 1 deletion socket_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin
// +build darwin

package tcplisten

Expand Down
1 change: 0 additions & 1 deletion socket_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !darwin
// +build !darwin

package tcplisten

Expand Down
1 change: 0 additions & 1 deletion tcplisten.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || darwin || dragonfly || freebsd || netbsd || openbsd || rumprun
// +build linux darwin dragonfly freebsd netbsd openbsd rumprun

// Package tcplisten provides customizable TCP net.Listener with various
// performance-related options:
Expand Down
1 change: 0 additions & 1 deletion tcplisten_bsd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || dragonfly || freebsd || netbsd || openbsd || rumprun
// +build darwin dragonfly freebsd netbsd openbsd rumprun

package tcplisten

Expand Down
4 changes: 1 addition & 3 deletions tcplisten_linux.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//go:build linux
// +build linux

package tcplisten

import (
"fmt"
"io/ioutil"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -34,7 +32,7 @@ func enableFastOpen(fd int) error {
const fastOpenQlen = 16 * 1024

func soMaxConn() (int, error) {
data, err := ioutil.ReadFile(soMaxConnFilePath)
data, err := os.ReadFile(soMaxConnFilePath)
if err != nil {
// This error may trigger on travis build. Just use SOMAXCONN
if os.IsNotExist(err) {
Expand Down

0 comments on commit a6344e3

Please sign in to comment.