Skip to content

Commit

Permalink
CHANGED - typo err (#4169)
Browse files Browse the repository at this point in the history
Resolves # typo err

### Changes proposed in this pull request:

 - jetstream_api.go typo err
 - accounts.go typo err
 
/cc @nats-io/core
  • Loading branch information
derekcollison committed May 16, 2023
2 parents bca7b4e + cd192f0 commit 4feb7b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions server/accounts.go
Expand Up @@ -616,7 +616,7 @@ func (a *Account) AddMapping(src, dest string) error {
return a.AddWeightedMappings(src, NewMapDest(dest, 100))
}

// AddWeightedMapping will add in a weighted mappings for the destinations.
// AddWeightedMappings will add in a weighted mappings for the destinations.
// TODO(dlc) - Allow cluster filtering
func (a *Account) AddWeightedMappings(src string, dests ...*MapDest) error {
a.mu.Lock()
Expand Down Expand Up @@ -2301,7 +2301,7 @@ func (si *serviceImport) isRespServiceImport() bool {
return si != nil && si.response
}

// Sets the response theshold timer for a service export.
// Sets the response threshold timer for a service export.
// Account lock should be held
func (se *serviceExport) setResponseThresholdTimer() {
if se.rtmr != nil {
Expand Down Expand Up @@ -3112,7 +3112,7 @@ func (a *Account) isClaimAccount() bool {
return a.claimJWT != _EMPTY_
}

// updateAccountClaims will update an existing account with new claims.
// UpdateAccountClaims will update an existing account with new claims.
// This will replace any exports or imports previously defined.
// Lock MUST NOT be held upon entry.
func (s *Server) UpdateAccountClaims(a *Account, ac *jwt.AccountClaims) {
Expand Down
4 changes: 2 additions & 2 deletions server/jetstream_api.go
Expand Up @@ -2656,7 +2656,7 @@ func (s *Server) jsLeaderAccountPurgeRequest(sub *subscription, c *client, _ *Ac
}

// Request to have the meta leader stepdown.
// These will only be received the the meta leaders, so less checking needed.
// These will only be received the meta leaders, so less checking needed.
func (s *Server) jsLeaderStepDownRequest(sub *subscription, c *client, _ *Account, subject, reply string, rmsg []byte) {
if c == nil || !s.JetStreamEnabled() {
return
Expand Down Expand Up @@ -3326,7 +3326,7 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC

var total int

// FIXM(dlc) - Probably take out of network path eventually due to disk I/O?
// FIXME(dlc) - Probably take out of network path eventually due to disk I/O?
processChunk := func(sub *subscription, c *client, _ *Account, subject, reply string, msg []byte) {
// We require reply subjects to communicate back failures, flow etc. If they do not have one log and cancel.
if reply == _EMPTY_ {
Expand Down

0 comments on commit 4feb7b9

Please sign in to comment.