Fixes based on PR feedback

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-03-25 18:09:35 -07:00
parent da7b7f9f85
commit c05ff97d09
2 changed files with 2 additions and 5 deletions

View File

@@ -1302,10 +1302,7 @@ func (jsa *jsAccount) checkBytesLimits(addBytes int64, storage StorageType) erro
}
func (jsa *jsAccount) acc() *Account {
//jsa.mu.RLock()
acc := jsa.account
//jsa.mu.RUnlock()
return acc
return jsa.account
}
// Delete the JetStream resources.

View File

@@ -1235,8 +1235,8 @@ func (mset *stream) processInboundMirrorMsg(m *inMsg) bool {
mset.mirror.cname = tokenAt(m.rply, 4)
mset.mirror.dseq, mset.mirror.sseq = dseq, sseq
} else {
mset.retryMirrorConsumer()
mset.mu.Unlock()
mset.retryMirrorConsumer()
return false
}
}