Ugly comments, fix them
This commit is contained in:
parent
da22d5b161
commit
10a67fe7de
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user