1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

fix: some linting issues (#2563)

This commit is contained in:
David Brouwer
2022-09-30 16:27:07 +02:00
committed by GitHub
parent 47e6a8d725
commit 85c0b0b8eb
221 changed files with 1025 additions and 1283 deletions

View File

@ -7,7 +7,7 @@ import (
"go-micro.dev/v4/transport"
)
// Socket is our pseudo socket for transport.Socket
// Socket is our pseudo socket for transport.Socket.
type Socket struct {
id string
// closed
@ -30,7 +30,7 @@ func (s *Socket) SetRemote(r string) {
s.remote = r
}
// Accept passes a message to the socket which will be processed by the call to Recv
// Accept passes a message to the socket which will be processed by the call to Recv.
func (s *Socket) Accept(m *transport.Message) error {
select {
case s.recv <- m:
@ -40,7 +40,7 @@ func (s *Socket) Accept(m *transport.Message) error {
}
}
// Process takes the next message off the send queue created by a call to Send
// Process takes the next message off the send queue created by a call to Send.
func (s *Socket) Process(m *transport.Message) error {
select {
case msg := <-s.send:
@ -91,7 +91,7 @@ func (s *Socket) Recv(m *transport.Message) error {
return nil
}
// Close closes the socket
// Close closes the socket.
func (s *Socket) Close() error {
select {
case <-s.closed: