{"action":"created","issue":{"url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/4","labels_url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/4/comments","events_url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/4/events","html_url":"https://github.com/ttab/amqp-as-promised/pull/4","id":91461804,"number":4,"title":"Ensure that handler() always returns a promise","user":{"login":"chriserik","id":420674,"avatar_url":"https://avatars.githubusercontent.com/u/420674?v=3","gravatar_id":"","url":"https://api.github.com/users/chriserik","html_url":"https://github.com/chriserik","followers_url":"https://api.github.com/users/chriserik/followers","following_url":"https://api.github.com/users/chriserik/following{/other_user}","gists_url":"https://api.github.com/users/chriserik/gists{/gist_id}","starred_url":"https://api.github.com/users/chriserik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriserik/subscriptions","organizations_url":"https://api.github.com/users/chriserik/orgs","repos_url":"https://api.github.com/users/chriserik/repos","events_url":"https://api.github.com/users/chriserik/events{/privacy}","received_events_url":"https://api.github.com/users/chriserik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T13:02:12Z","updated_at":"2015-06-27T22:31:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ttab/amqp-as-promised/pulls/4","html_url":"https://github.com/ttab/amqp-as-promised/pull/4","diff_url":"https://github.com/ttab/amqp-as-promised/pull/4.diff","patch_url":"https://github.com/ttab/amqp-as-promised/pull/4.patch"},"body":"This resolves an issue I had when using the library's rpc.serve function with a handler function not returning a promise:\r\n\r\n```amqpc.serve('rpc', 'test', function(msg, headers, del) {\r\n  return { result: 'ok' }\r\n});``` "},"comment":{"url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/comments/116163583","html_url":"https://github.com/ttab/amqp-as-promised/pull/4#issuecomment-116163583","issue_url":"https://api.github.com/repos/ttab/amqp-as-promised/issues/4","id":116163583,"user":{"login":"algesten","id":227204,"avatar_url":"https://avatars.githubusercontent.com/u/227204?v=3","gravatar_id":"","url":"https://api.github.com/users/algesten","html_url":"https://github.com/algesten","followers_url":"https://api.github.com/users/algesten/followers","following_url":"https://api.github.com/users/algesten/following{/other_user}","gists_url":"https://api.github.com/users/algesten/gists{/gist_id}","starred_url":"https://api.github.com/users/algesten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algesten/subscriptions","organizations_url":"https://api.github.com/users/algesten/orgs","repos_url":"https://api.github.com/users/algesten/repos","events_url":"https://api.github.com/users/algesten/events{/privacy}","received_events_url":"https://api.github.com/users/algesten/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T22:31:29Z","updated_at":"2015-06-27T22:31:29Z","body":"Looks good. Would you mind writing a test case for that?"}}