{"action":"opened","issue":{"url":"https://api.github.com/repos/algesten/rabbiteer-rs/issues/6","repository_url":"https://api.github.com/repos/algesten/rabbiteer-rs","labels_url":"https://api.github.com/repos/algesten/rabbiteer-rs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/algesten/rabbiteer-rs/issues/6/comments","events_url":"https://api.github.com/repos/algesten/rabbiteer-rs/issues/6/events","html_url":"https://github.com/algesten/rabbiteer-rs/issues/6","id":301326124,"number":6,"title":"panic when using --single flag","user":{"login":"dch","id":284368,"avatar_url":"https://avatars1.githubusercontent.com/u/284368?v=4","gravatar_id":"","url":"https://api.github.com/users/dch","html_url":"https://github.com/dch","followers_url":"https://api.github.com/users/dch/followers","following_url":"https://api.github.com/users/dch/following{/other_user}","gists_url":"https://api.github.com/users/dch/gists{/gist_id}","starred_url":"https://api.github.com/users/dch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dch/subscriptions","organizations_url":"https://api.github.com/users/dch/orgs","repos_url":"https://api.github.com/users/dch/repos","events_url":"https://api.github.com/users/dch/events{/privacy}","received_events_url":"https://api.github.com/users/dch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T09:04:47Z","updated_at":"2018-03-01T09:04:47Z","closed_at":null,"author_association":"NONE","body":"I 😍 this super handy tool so much -- thanks!\r\n\r\nI'm seeing a panic only when using the ``-single` flag, running on FreeBSD:\r\n\r\n```\r\n$ env RUST_BACKTRACE=1 rabbiteer -U $BROKER subscribe --exchange amq.direct --queue api.search --single --noack\r\n\r\n{\"data\":{...},\"meta\":{\"reply_to\":\"api.search.reply.11bc98c338bd1858\"}}\r\n\r\nthread 'main' panicked at 'already borrowed: BorrowMutError', src/libcore/result.rs:916:5\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n   1: std::sys_common::backtrace::print\r\n   2: std::panicking::default_hook::{{closure}}\r\n   3: std::panicking::default_hook\r\n   4: std::panicking::rust_panic_with_hook\r\n   5: std::panicking::begin_panic\r\n   6: std::panicking::begin_panic_fmt\r\n   7: rust_begin_unwind\r\n   8: core::panicking::panic_fmt\r\n   9: core::result::unwrap_failed\r\n  10: amqp::channel::Channel::read\r\n  11: amqp::channel::Channel::close\r\n  12: rabbiteer::subscribe::do_subscribe::{{closure}}\r\n  13: <rabbiteer::client::Receiver as amqp::channel::Consumer>::handle_delivery\r\n  14: amqp::channel::Channel::read\r\n  15: amqp::channel::Channel::start_consuming\r\n  16: rabbiteer::subscribe::do_subscribe\r\n  17: rabbiteer::_main\r\n  18: rabbiteer::main\r\n  19: std::rt::lang_start::{{closure}}\r\n  20: std::panicking::try::do_call\r\n  21: __rust_maybe_catch_panic\r\n             at src/libpanic_unwind/lib.rs:101\r\n  22: std::rt::lang_start_internal\r\n  23: main\r\n  24: _start\r\n             at /usr/src/lib/csu/amd64/crt1.c:74\r\n```\r\n\r\n## compiler & OS\r\n\r\n```\r\n$ rustc --version\r\nrustc 1.24.0\r\n$ uname -a\r\nFreeBSD wintermute 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r330131+c2b4c41f8e15(master): Wed Feb 28 22:36:38 UTC 2018     root@wintermute:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd664\r\n```\r\n\r\nAs I've not reported bugs in rust code before please let me know if there's anything more helpful I can provide."}}
{"actor":{"display_login":"dch"}}