defaultDialer dials a default Rabbit server based on the environment variable "RABBIT_SERVER_URL".
| 42 | // defaultDialer dials a default Rabbit server based on the environment |
| 43 | // variable "RABBIT_SERVER_URL". |
| 44 | type defaultDialer struct { |
| 45 | mu sync.Mutex |
| 46 | conn *amqp.Connection |
| 47 | opener *URLOpener |
| 48 | } |
| 49 | |
| 50 | func (o *defaultDialer) defaultConn(ctx context.Context) (*URLOpener, error) { |
| 51 | o.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected