Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created May 27, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/22fc72b400556878be5527e5b41df11e to your computer and use it in GitHub Desktop.
Save grahamc/22fc72b400556878be5527e5b41df11e to your computer and use it in GitHub Desktop.
[grahamc@zoidberg:/nix/var/nix/profiles]$ diff -r /nix/store/vyhhavnpqcl5cvv87asms3q8x831dg9k-nixos-webhooks-irc/ /nix/store/fsx5nrzcf7jf98imp0rlbd4ni1lf8xs9-nixos-webhooks-irc/
diff -r /nix/store/vyhhavnpqcl5cvv87asms3q8x831dg9k-nixos-webhooks-irc/lib/github-to-irc.rb /nix/store/fsx5nrzcf7jf98imp0rlbd4ni1lf8xs9-nixos-webhooks-irc/lib/github-to-irc.rb
6,7c6,7
< $stdout.sync = true
< $stderr.sync = true
---
> STDOUT.sync = true
> STDERR.sync = true
22c22
< IRC_QUEUE = "amq.direct"
---
> IRC_EXCHANGE = "exchange-messages"
39c39
< github_queue = channel.queue("", :exclusive => true)
---
> github_queue = channel.queue()
44c44
< irc_exchange = channel.direct("", durable: true, passive: true)
---
> irc_exchange = channel.fanout(IRC_EXCHANGE, durable: true, passive: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment