chore: style fixes from go fix (#10846)
Just `go fix ./...` Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -69,7 +69,7 @@ func (c *staticClient) serve(ctx context.Context) error {
|
||||
|
||||
slog.InfoContext(ctx, "Joined relay", slogutil.URI(fmt.Sprintf("%s://%s", c.uri.Scheme, c.uri.Host)))
|
||||
|
||||
messages := make(chan interface{})
|
||||
messages := make(chan any)
|
||||
errorsc := make(chan error, 1)
|
||||
|
||||
go messageReader(ctx, c.conn, messages, errorsc)
|
||||
@@ -235,7 +235,7 @@ func performHandshakeAndValidation(conn *tls.Conn, uri *url.URL) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func messageReader(ctx context.Context, conn net.Conn, messages chan<- interface{}, errors chan<- error) {
|
||||
func messageReader(ctx context.Context, conn net.Conn, messages chan<- any, errors chan<- error) {
|
||||
for {
|
||||
msg, err := protocol.ReadMessage(conn)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user