@@ -50,7 +50,7 @@ func (sec *security) Handshake(conn *zmq4.Conn, server bool) error {
50
50
// FIXME(sbinet): perform a real authentication
51
51
err = validateHello (cmd .Body )
52
52
if err != nil {
53
- conn .SendCmd (zmq4 .CmdError , []byte ("invalid" )) // FIXME(sbinet) correct ERROR reason
53
+ _ = conn .SendCmd (zmq4 .CmdError , []byte ("invalid" )) // FIXME(sbinet) correct ERROR reason
54
54
return fmt .Errorf ("security/plain: could not authenticate client: %w" , err )
55
55
}
56
56
@@ -71,7 +71,7 @@ func (sec *security) Handshake(conn *zmq4.Conn, server bool) error {
71
71
72
72
raw , err := conn .Meta .MarshalZMTP ()
73
73
if err != nil {
74
- conn .SendCmd (zmq4 .CmdError , []byte ("invalid" )) // FIXME(sbinet) correct ERROR reason
74
+ _ = conn .SendCmd (zmq4 .CmdError , []byte ("invalid" )) // FIXME(sbinet) correct ERROR reason
75
75
return fmt .Errorf ("security/plain: could not serialize metadata: %w" , err )
76
76
}
77
77
@@ -97,13 +97,13 @@ func (sec *security) Handshake(conn *zmq4.Conn, server bool) error {
97
97
return fmt .Errorf ("security/plain: could not receive WELCOME from server: %w" , err )
98
98
}
99
99
if cmd .Name != zmq4 .CmdWelcome {
100
- conn .SendCmd (zmq4 .CmdError , []byte ("invalid command" )) // FIXME(sbinet) correct ERROR reason
100
+ _ = conn .SendCmd (zmq4 .CmdError , []byte ("invalid command" )) // FIXME(sbinet) correct ERROR reason
101
101
return fmt .Errorf ("security/plain: expected a WELCOME command from server: %w" , err )
102
102
}
103
103
104
104
raw , err := conn .Meta .MarshalZMTP ()
105
105
if err != nil {
106
- conn .SendCmd (zmq4 .CmdError , []byte ("internal error" )) // FIXME(sbinet) correct ERROR reason
106
+ _ = conn .SendCmd (zmq4 .CmdError , []byte ("internal error" )) // FIXME(sbinet) correct ERROR reason
107
107
return fmt .Errorf ("security/plain: could not serialize metadata: %w" , err )
108
108
}
109
109
@@ -117,7 +117,7 @@ func (sec *security) Handshake(conn *zmq4.Conn, server bool) error {
117
117
return fmt .Errorf ("security/plain: could not receive READY from server: %w" , err )
118
118
}
119
119
if cmd .Name != zmq4 .CmdReady {
120
- conn .SendCmd (zmq4 .CmdError , []byte ("invalid command" )) // FIXME(sbinet) correct ERROR reason
120
+ _ = conn .SendCmd (zmq4 .CmdError , []byte ("invalid command" )) // FIXME(sbinet) correct ERROR reason
121
121
return fmt .Errorf ("security/plain: expected a READY command from server: %w" , err )
122
122
}
123
123
0 commit comments