Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some comments #4099

Merged
merged 1 commit into from Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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