bikeshedder / deadpool

Dead simple pool implementation for rust with async-await
Apache License 2.0
1.08k stars 137 forks source link

AMQPUri in deadpool lapin #337

Open bikeshedder opened 5 months ago

bikeshedder commented 5 months ago

Discussed in https://github.com/bikeshedder/deadpool/discussions/332

Originally posted by **metalalive** June 10, 2024 Hi, is it possible to pass [`lapin::uri::AMQPUri`](https://docs.rs/amq-protocol-uri/latest/amq_protocol_uri/struct.AMQPUri.html) to [`deadpool_lapin::Config`](https://docs.rs/deadpool-lapin/latest/deadpool_lapin/struct.Config.html) for pool setup ? currently the only way I found is to specify optional [formatted string](https://www.rabbitmq.com/docs/uri-spec) to `Config::url` , then `lapin` internally extracts the string to `AMQPUri` . I am not sure if I can configure it directly with `AMQPUri` ? Thanks