We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 005273d commit b2d2deeCopy full SHA for b2d2dee
examples/socket/tcp_fd_passing/tcpserver/main.go
@@ -63,9 +63,9 @@ func run() error {
63
unixConn = udsConn.(*net.UnixConn)
64
tcpConn = conn.(*net.TCPConn)
65
file, _ = tcpConn.File()
66
- fd = fdpassing.NewFd(unixConn)
+ fdp = fdpassing.NewFd(unixConn)
67
)
68
- err = fd.Send(int(file.Fd()))
+ err = fdp.Send(int(file.Fd()))
69
if err != nil {
70
errCh <- err
71
return
examples/socket/tcp_fd_passing/udsserver/main.go
@@ -41,7 +41,8 @@ func run() error {
41
return fmt.Errorf("not net.UnixConn")
42
}
43
44
- fd, err := fdpassing.NewFd(unixConn).Recv()
+ fdp := fdpassing.NewFd(unixConn)
45
+ fd, err := fdp.Recv()
46
47
return err
48
0 commit comments