Skip to content

Commit

Permalink
fix some comments (#4099)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Apr 25, 2023
2 parents b0d98df + f1f5a59 commit c2649be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions conf/lex.go
Expand Up @@ -681,7 +681,7 @@ func lexMapQuotedKey(lx *lexer) stateFn {
return lexMapQuotedKey
}

// lexMapQuotedKey consumes the text of a key between quotes.
// lexMapDubQuotedKey consumes the text of a key between quotes.
func lexMapDubQuotedKey(lx *lexer) stateFn {
if r := lx.peek(); r == eof {
return lx.errorf("Unexpected EOF processing double quoted map key.")
Expand Down Expand Up @@ -1061,7 +1061,7 @@ func lexNegNumberStart(lx *lexer) stateFn {
return lexNegNumber
}

// lexNumber consumes a negative integer or a float after seeing the first digit.
// lexNegNumber consumes a negative integer or a float after seeing the first digit.
func lexNegNumber(lx *lexer) stateFn {
r := lx.next()
switch {
Expand Down
4 changes: 2 additions & 2 deletions server/accounts.go
Expand Up @@ -1342,7 +1342,7 @@ func (a *Account) sendBackendErrorTrackingLatency(si *serviceImport, reason rsiR
a.sendLatencyResult(si, sl)
}

// sendTrackingMessage will send out the appropriate tracking information for the
// sendTrackingLatency will send out the appropriate tracking information for the
// service request/response latency. This is called when the requestor's server has
// received the response.
// TODO(dlc) - holding locks for RTTs may be too much long term. Should revisit.
Expand Down Expand Up @@ -1602,7 +1602,7 @@ func (a *Account) NumPendingAllResponses() int {
return a.NumPendingResponses(_EMPTY_)
}

// NumResponsesPending returns the number of responses outstanding for service exports
// NumPendingResponses returns the number of responses outstanding for service exports
// on this account. An empty filter string returns all responses regardless of which export.
// If you specify the filter we will only return ones that are for that export.
// NOTE this is only for what this server is tracking.
Expand Down
4 changes: 2 additions & 2 deletions server/jetstream.go
Expand Up @@ -464,7 +464,7 @@ func (s *Server) restartJetStream() error {
return nil
}

// checkStreamExports will check if we have the JS exports setup
// checkJetStreamExports will check if we have the JS exports setup
// on the system account, and if not go ahead and set them up.
func (s *Server) checkJetStreamExports() {
if sacc := s.SystemAccount(); sacc != nil {
Expand Down Expand Up @@ -638,7 +638,7 @@ func (a *Account) enableAllJetStreamServiceImportsAndMappings() error {
return nil
}

// enableJetStreamEnabledServiceImportOnly will enable the single service import responder.
// enableJetStreamInfoServiceImportOnly will enable the single service import responder.
// Should we do them all regardless?
func (a *Account) enableJetStreamInfoServiceImportOnly() error {
// Check if this import would be overshadowed. This can happen when accounts
Expand Down

0 comments on commit c2649be

Please sign in to comment.