Skip to content

Commit

Permalink
Merge pull request #671 from panjf2000/dev
Browse files Browse the repository at this point in the history
patch: v2.7.1
  • Loading branch information
panjf2000 authored Jan 5, 2025
2 parents a7e541b + e9a1101 commit e907804
Show file tree
Hide file tree
Showing 61 changed files with 181 additions and 92 deletions.
1 change: 0 additions & 1 deletion acceptor_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

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

package gnet

Expand Down
1 change: 0 additions & 1 deletion client_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

Expand Down
2 changes: 0 additions & 2 deletions conn_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// limitations under the License.

//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd) && !gc_opt
// +build darwin dragonfly freebsd linux netbsd openbsd
// +build !gc_opt

package gnet

Expand Down
2 changes: 0 additions & 2 deletions conn_matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// limitations under the License.

//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd) && gc_opt
// +build darwin dragonfly freebsd linux netbsd openbsd
// +build gc_opt

package gnet

Expand Down
2 changes: 0 additions & 2 deletions conn_matrix_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd) && gc_opt
// +build darwin dragonfly freebsd linux netbsd openbsd
// +build gc_opt

package gnet

Expand Down
1 change: 0 additions & 1 deletion connection_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || netbsd || openbsd
// +build darwin dragonfly freebsd netbsd openbsd

package gnet

Expand Down
1 change: 0 additions & 1 deletion connection_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

Expand Down
1 change: 0 additions & 1 deletion engine_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

Expand Down
1 change: 0 additions & 1 deletion eventloop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

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

package gnet

Expand Down
1 change: 0 additions & 1 deletion listener_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package gnet

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

package gnet

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

package gnet

Expand Down
1 change: 0 additions & 1 deletion pkg/io/io_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || netbsd || openbsd
// +build darwin dragonfly freebsd netbsd openbsd

package io

Expand Down
2 changes: 0 additions & 2 deletions pkg/netpoll/defs_bsd_32bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// limitations under the License.

//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && (386 || arm || mips || mipsle)
// +build darwin dragonfly freebsd netbsd openbsd
// +build 386 arm mips mipsle

package netpoll

Expand Down
2 changes: 0 additions & 2 deletions pkg/netpoll/defs_bsd_64bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// limitations under the License.

//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && (amd64 || arm64 || ppc64 || ppc64le || mips64 || mips64le || riscv64)
// +build darwin dragonfly freebsd netbsd openbsd
// +build amd64 arm64 ppc64 ppc64le mips64 mips64le riscv64

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build !poll_opt
// +build !poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// cgo -cdefs defs2_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// cgo -cdefs defs_linux.go defs1_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// ../cmd/cgo/cgo -cdefs defs_linux.go defs1_linux.go defs2_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
3 changes: 0 additions & 3 deletions pkg/netpoll/defs_linux_mips64x.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// license that can be found in the LICENSE file.

//go:build (mips64 || mips64le) && linux && poll_opt
// +build mips64 mips64le
// +build linux
// +build poll_opt

package netpoll

Expand Down
3 changes: 0 additions & 3 deletions pkg/netpoll/defs_linux_mipsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// license that can be found in the LICENSE file.

//go:build (mips || mipsle) && linux && poll_opt
// +build mips mipsle
// +build linux
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_ppc64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// cgo -cdefs defs_linux.go defs3_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// cgo -cdefs defs_linux.go defs3_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_riscv64.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// go tool cgo -godefs defs_linux.go defs1_linux.go defs2_linux.go

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_linux_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build poll_opt
// +build poll_opt

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_poller_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || openbsd
// +build darwin dragonfly freebsd openbsd

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_poller_epoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build linux
// +build linux

package netpoll

Expand Down
1 change: 0 additions & 1 deletion pkg/netpoll/defs_poller_kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

//go:build darwin || dragonfly || freebsd || netbsd || openbsd
// +build darwin dragonfly freebsd netbsd openbsd

package netpoll

Expand Down
Loading

0 comments on commit e907804

Please sign in to comment.