mirror of
https://github.com/redis/go-redis.git
synced 2025-11-26 06:23:09 +03:00
* fix: add missing error variable for non-unix build constraints * chore: name "_" for unused parameters --------- Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
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
|
|
}
|