get_routing_hash
faststream.rabbit.shared.schemas.get_routing_hash #
get_routing_hash(queue: RabbitQueue, exchange: Optional[RabbitExchange] = None) -> int
Calculate the routing hash for a RabbitMQ queue and exchange.
PARAMETER | DESCRIPTION |
---|---|
queue | The RabbitMQ queue. TYPE: |
exchange | The RabbitMQ exchange (optional). TYPE: |
RETURNS | DESCRIPTION |
---|---|
int | The routing hash as an integer. |