()
| 220 | } |
| 221 | |
| 222 | func (c *Client) connection() (*amqp.Connection, error) { |
| 223 | conn, _ := c.conn.Load().(*amqp.Connection) |
| 224 | if conn == nil { |
| 225 | return nil, ErrNoConnection |
| 226 | } |
| 227 | |
| 228 | return conn, nil |
| 229 | } |
| 230 | |
| 231 | // NewClient initializes new Client |
| 232 | func NewClient(opts ...ClientOpt) *Client { |
no outgoing calls