Fix typo on internal function

Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
Waldemar Quevedo
2023-07-22 20:40:26 -07:00
parent 80fb29f9e3
commit bbfeb2a887
4 changed files with 6 additions and 6 deletions

View File

@@ -3360,7 +3360,7 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC
// TODO(dlc) - We could check apriori and cancel initial request if we know it won't fit.
total += len(msg)
if js.wouldExceedLimits(FileStorage, total) {
s.resourcesExeededError()
s.resourcesExceededError()
resultCh <- result{NewJSInsufficientResourcesError(), reply}
return
}