mirror of
https://github.com/hanzokv/go.git
synced 2026-09-24 00:31:51 +00:00
* fix: add missing error variable for non-unix build constraints * chore: name "_" for unused parameters --------- Co-authored-by: Elena Kolevska <[email protected]>
21 lines
474 B
Go
21 lines
474 B
Go
//go:build !linux && !darwin && !dragonfly && !freebsd && !netbsd && !openbsd && !solaris && !illumos
|
|
|
|
package pool
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
// errUnexpectedRead is placeholder error variable for non-unix build constraints
|
|
var errUnexpectedRead = errors.New("unexpected read from socket")
|
|
|
|
func connCheck(_ net.Conn) error {
|
|
return nil
|
|
}
|
|
|
|
// since we can't check for data on the socket, we just assume there is some
|
|
func maybeHasData(_ net.Conn) bool {
|
|
return true
|
|
}
|