mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 18:20:42 -07:00
CHANGED - typo err (#4169)
Resolves # typo err ### Changes proposed in this pull request: - jetstream_api.go typo err - accounts.go typo err /cc @nats-io/core
This commit is contained in:
@@ -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()
|
||||
@@ -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 {
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
@@ -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_ {
|
||||
|
||||
Reference in New Issue
Block a user