You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
408 B

package connectionmanager
import (
amqp "github.com/rabbitmq/amqp091-go"
)
// NotifyBlockedSafe safely wraps the (*amqp.Connection).NotifyBlocked method
func (connManager *ConnectionManager) NotifyBlockedSafe(
receiver chan amqp.Blocking,
) chan amqp.Blocking {
connManager.connectionMux.RLock()
defer connManager.connectionMux.RUnlock()
return connManager.connection.NotifyBlocked(
receiver,
)
}