Revert lock guard

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-08-31 08:58:22 -07:00
parent fbaed8f220
commit 0bd4763584

View File

@@ -3510,9 +3510,7 @@ func (fs *fileStore) removeMsg(seq uint64, secure, viaLimits, needFSLock bool) (
}
cb := fs.scb
if !needFSLock {
fs.mu.Unlock()
}
fs.mu.Unlock()
// Storage updates.
if cb != nil {