Ugly comments, fix them

This commit is contained in:
Asim 2016-03-18 19:23:44 +00:00
parent da22d5b161
commit 10a67fe7de

View File

@ -38,9 +38,9 @@ type mockTransport struct {
func (ms *mockSocket) Recv(m *transport.Message) error { func (ms *mockSocket) Recv(m *transport.Message) error {
select { select {
case <-ms.exit: case <-ms.exit:
return errors.New("server side connection closed") return errors.New("connection closed")
case <-ms.lexit: case <-ms.lexit:
return errors.New("server side connection closed") return errors.New("server connection closed")
case cm := <-ms.recv: case cm := <-ms.recv:
*m = *cm *m = *cm
} }
@ -50,9 +50,9 @@ func (ms *mockSocket) Recv(m *transport.Message) error {
func (ms *mockSocket) Send(m *transport.Message) error { func (ms *mockSocket) Send(m *transport.Message) error {
select { select {
case <-ms.exit: case <-ms.exit:
return errors.New("client side connection closed") return errors.New("connection closed")
case <-ms.lexit: case <-ms.lexit:
return errors.New("server side connection closed") return errors.New("server connection closed")
case ms.send <- m: case ms.send <- m:
} }
return nil return nil