Declare github-events exchange in the evaluation filter

This commit is contained in:
Graham Christensen 2018-03-02 19:44:21 -05:00
parent 7f0c39a315
commit 4a3aa348a3
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -30,6 +30,19 @@ fn main() {
let mut channel = session.open_channel(1).unwrap(); let mut channel = session.open_channel(1).unwrap();
channel
.declare_exchange(easyamqp::ExchangeConfig {
exchange: "github-events".to_owned(),
exchange_type: easyamqp::ExchangeType::Topic,
passive: false,
durable: true,
auto_delete: false,
no_wait: false,
internal: false,
arguments: None,
})
.unwrap();
channel channel
.declare_queue(easyamqp::QueueConfig { .declare_queue(easyamqp::QueueConfig {
queue: "mass-rebuild-check-jobs".to_owned(), queue: "mass-rebuild-check-jobs".to_owned(),