Some cleanup, fixes typos and grammar errors

This commit is contained in:
Deluan
2022-12-06 20:09:03 -05:00
parent c5f7cf97f4
commit f206d81afd
8 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ func Authenticator(ds model.DataStore) func(next http.Handler) http.Handler {
}
}
// JWTRefresher updates the expire date of the received JWT token, and add the new one to the Authorization Header
// JWTRefresher updates the expiry date of the received JWT token, and add the new one to the Authorization Header
func JWTRefresher(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
+1 -1
View File
@@ -222,7 +222,7 @@ func (b *broker) listen() {
c.diode.put(msg)
case c := <-b.unsubscribing:
// A client has detached and we want to
// A client has detached, and we want to
// stop sending them messages.
delete(clients, c)
log.Debug("Removed client from event broker", "numClients", len(clients), "client", c.String())