v.0.0.3.2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
madipo2611 2025-08-16 20:36:41 +03:00
parent 070712fe59
commit 600cf8cda2

View File

@ -429,8 +429,8 @@ func (s *server) runStream(req *proto.StreamMessagesRequest, stream proto.Messag
d.Nack(false, true) // Возвращаем в очередь при ошибке отправки
return err
}
d.Ack(false)
d.Ack(false) // Подтверждаем обработку
}
}
}
@ -475,7 +475,7 @@ func main() {
// Попытка переподключения
for i := 0; i < 5; i++ {
time.Sleep(time.Second * time.Duration(i+1))
newConn, err := amqp.Dial("amqp://tailly_rabbitmq:o2p2S80MPbl27LUU@89.104.69.222:5673/")
newConn, err := amqp.Dial("amqp://...")
if err == nil {
mu.Lock()
*conn = newConn