We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44df88 commit 3ad9f9cCopy full SHA for 3ad9f9c
internal/pool/conn_check_dummy.go
@@ -2,13 +2,19 @@
2
3
package pool
4
5
-import "net"
+import (
6
+ "errors"
7
+ "net"
8
+)
9
-func connCheck(conn net.Conn) error {
10
+// errUnexpectedRead is placeholder error variable for non-unix build constraints
11
+var errUnexpectedRead = errors.New("unexpected read from socket")
12
+
13
+func connCheck(_ net.Conn) error {
14
return nil
15
}
16
17
// since we can't check for data on the socket, we just assume there is some
-func maybeHasData(conn net.Conn) bool {
18
+func maybeHasData(_ net.Conn) bool {
19
return true
20
0 commit comments