Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions internal/pool/conn_check_dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

package pool

import "net"
import (
"errors"
"net"
)

func connCheck(conn net.Conn) error {
// 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(conn net.Conn) bool {
func maybeHasData(_ net.Conn) bool {
return true
}
Loading