Fix some typos in comments and error messages (found by codespell)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2020-05-23 09:35:00 +02:00
parent 8d9c9cc1cd
commit 859ba9ec2c
4 changed files with 5 additions and 5 deletions

View file

@ -249,7 +249,7 @@ func (m *HelloClientMessage) CheckValid() error {
return err
}
default:
return fmt.Errorf("unsupport auth type")
return fmt.Errorf("unsupported auth type")
}
}
return nil

View file

@ -733,7 +733,7 @@ func (h *Hub) processHello(client *Client, message *ClientMessage) {
return
}
// Make sure client doesn't get disconencted while calling auth backend.
// Make sure client doesn't get disconnected while calling auth backend.
h.mu.Lock()
delete(h.expectHelloClients, client)
h.mu.Unlock()

View file

@ -234,7 +234,7 @@ type JanusGateway struct {
Sessions map[uint64]*JanusSession
// Access to the Sessions map should be synchronized with the Gateway.Lock()
// and Gateway.Unlock() methods provided by the embeded sync.Mutex.
// and Gateway.Unlock() methods provided by the embedded sync.Mutex.
sync.Mutex
conn *websocket.Conn
@ -578,7 +578,7 @@ type JanusSession struct {
Handles map[uint64]*JanusHandle
// Access to the Handles map should be synchronized with the Session.Lock()
// and Session.Unlock() methods provided by the embeded sync.Mutex.
// and Session.Unlock() methods provided by the embedded sync.Mutex.
sync.Mutex
gateway *JanusGateway

View file

@ -1039,7 +1039,7 @@ retry:
case msg := <-wakeupChan:
var message NatsMessage
if err := p.mcu.nats.Decode(msg, &message); err != nil {
log.Printf("Error decoding wakup NATS message %s (%s)\n", string(msg.Data), err)
log.Printf("Error decoding wakeup NATS message %s (%s)\n", string(msg.Data), err)
goto wait
} else if message.Type != "connected" {
log.Printf("Unsupported NATS message waiting for publisher %s: %+v\n", p.publisher, message)