Merge pull request #3777 from peaaceChoi/main

Fix some typos in code comment
This commit is contained in:
Derek Collison
2023-01-11 18:33:38 -08:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -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
}

View File

@@ -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.

View File

@@ -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}

View File

@@ -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()