Skip to content

Commit

Permalink
Merge pull request #3777 from peaaceChoi/main
Browse files Browse the repository at this point in the history
Fix some typos in code comment
  • Loading branch information
derekcollison committed Jan 12, 2023
2 parents 7d0aa4b + 0380373 commit 79de330
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/auth.go
Expand Up @@ -1078,7 +1078,7 @@ URLS:
}
hostLabels := strings.Split(strings.ToLower(url.Hostname()), ".")
// Following https://tools.ietf.org/html/rfc6125#section-6.4.3, should not => will not, may => will not
// The wilcard * never matches multiple label and only matches the left most label.
// The wildcard * never matches multiple label and only matches the left most label.
if len(hostLabels) != len(dnsAltNameLabels) {
continue URLS
}
Expand Down
2 changes: 1 addition & 1 deletion server/client.go
Expand Up @@ -387,7 +387,7 @@ type readCache struct {
rsz int32 // Read buffer size
srs int32 // Short reads, used for dynamic buffer resizing.

// These are for readcache flags to avoind locks.
// These are for readcache flags to avoid locks.
flags readCacheFlag

// Capture the time we started processing our readLoop.
Expand Down
2 changes: 1 addition & 1 deletion server/events.go
Expand Up @@ -270,7 +270,7 @@ func newPubMsg(c *client, sub, rply string, si *ServerInfo, hdr map[string]strin
} else {
m = &pubMsg{}
}
// When getting something from a pool it is criticical that all fields are
// When getting something from a pool it is critical that all fields are
// initialized. Doing this way guarantees that if someone adds a field to
// the structure, the compiler will fail the build if this line is not updated.
(*m) = pubMsg{c, sub, rply, si, hdr, msg, oct, echo, last}
Expand Down
2 changes: 1 addition & 1 deletion server/gateway.go
Expand Up @@ -1320,7 +1320,7 @@ func (s *Server) processGatewayInfoFromRoute(info *Info, routeSrvID string, rout

// Sends INFO protocols to the given route connection for each known Gateway.
// These will be processed by the route and delegated to the gateway code to
// imvoke processImplicitGateway.
// invoke processImplicitGateway.
func (s *Server) sendGatewayConfigsToRoute(route *client) {
gw := s.gateway
gw.RLock()
Expand Down

0 comments on commit 79de330

Please sign in to comment.