mirror of https://github.com/fluffle/goirc
client/mocknetconn_test: minor fix found by go vet
net.IPAddr composite literal uses unkeyed fields
This commit is contained in:
parent
7711182a72
commit
ec98b98fa6
|
@ -130,11 +130,11 @@ func (m *mockNetConn) Closed() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockNetConn) LocalAddr() net.Addr {
|
func (m *mockNetConn) LocalAddr() net.Addr {
|
||||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""}
|
return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockNetConn) RemoteAddr() net.Addr {
|
func (m *mockNetConn) RemoteAddr() net.Addr {
|
||||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""}
|
return &net.IPAddr{IP: net.IPv4(127, 0, 0, 1)}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockNetConn) SetDeadline(t time.Time) error {
|
func (m *mockNetConn) SetDeadline(t time.Time) error {
|
||||||
|
|
Loading…
Reference in New Issue