Closed pwli0755 closed 3 years ago
Thank you for this nice project!
I'm new to rabbitmq, here is my question: It seems this lib has handled the reconnection logic of amqp.Channel level, shall we handle the underlaying TCP connection (amqp.Connection) as well?
amqp.Channel
amqp.Connection
func (c *Connection) NotifyClose(receiver chan *Error) chan *Error { c.m.Lock() defer c.m.Unlock() if c.noNotify { close(receiver) } else { c.closes = append(c.closes, receiver) } return receiver }
forget it! my mistake.
if the Connection is closed, the Channel will be closed too, so maybe there is no need to handle TCP level re-connection any more.
Connection
Channel
Thank you for this nice project!
I'm new to rabbitmq, here is my question: It seems this lib has handled the reconnection logic of
amqp.Channel
level, shall we handle the underlaying TCP connection (amqp.Connection
) as well?