Skip to content

Instantly share code, notes, and snippets.

View prog-supdex's full-sized avatar

Igor Platonov prog-supdex

  • Serbia
  • 00:15 (UTC +02:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am prog-supdex on github.
  • I am supdex (https://keybase.io/supdex) on keybase.
  • I have a public key ASAwG_GWYotf1VtkNx9qOvaD59Rq-CEsCeNt1I1mpl7NKAo

To claim this, I am signing this object:

module RabbitMq
extend self
@mutex = Mutex.new
def connection
@mutex.synchronize do
@connection ||= Bunny.new(
host: Settings.rabbitmq.host,
username: Settings.rabbitmq.username,