mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -890,10 +890,17 @@ func (s *Server) sendAPIErrResponse(ci *ClientInfo, acc *Account, subject, reply
|
||||
const errRespDelay = 500 * time.Millisecond
|
||||
|
||||
func (s *Server) sendDelayedAPIErrResponse(ci *ClientInfo, acc *Account, subject, reply, request, response string, rg *raftGroup) {
|
||||
js := s.getJetStream()
|
||||
if js == nil {
|
||||
return
|
||||
}
|
||||
var quitCh <-chan struct{}
|
||||
js.mu.RLock()
|
||||
if rg != nil && rg.node != nil {
|
||||
quitCh = rg.node.QuitC()
|
||||
}
|
||||
js.mu.RUnlock()
|
||||
|
||||
s.startGoRoutine(func() {
|
||||
defer s.grWG.Done()
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user