{"action":"created","comment":{"url":"https://api.github.com/repos/nowait/amqp/pulls/comments/63737800","id":63737800,"diff_hunk":"@@ -0,0 +1,10 @@\n+'use strict'\n+/* @flow */\n+\n+import type { MessageHandler } from './index'\n+\n+import { ackOnComplete, ackOnError } from './ackOn'\n+import parseAndHandleMessage from './parseAndHandleMessage'\n+\n+export default (handleError:(e:mixed) => Promise<mixed>, f:(message:Object) => Promise<mixed>): MessageHandler =>\n+  parseAndHandleMessage(x => x, ackOnError(handleError), ackOnComplete, f)","path":"src/alwaysAck.js","position":10,"original_position":10,"commit_id":"d0846c5db23ccbcec8e42c906b854419a07ef76e","original_commit_id":"24560024b67bb285482383503b6b8920312e4f64","user":{"login":"raychan","id":709013,"avatar_url":"https://avatars.githubusercontent.com/u/709013?v=3","gravatar_id":"","url":"https://api.github.com/users/raychan","html_url":"https://github.com/raychan","followers_url":"https://api.github.com/users/raychan/followers","following_url":"https://api.github.com/users/raychan/following{/other_user}","gists_url":"https://api.github.com/users/raychan/gists{/gist_id}","starred_url":"https://api.github.com/users/raychan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raychan/subscriptions","organizations_url":"https://api.github.com/users/raychan/orgs","repos_url":"https://api.github.com/users/raychan/repos","events_url":"https://api.github.com/users/raychan/events{/privacy}","received_events_url":"https://api.github.com/users/raychan/received_events","type":"User","site_admin":false},"body":"I am ok leaving `alwaysAck` in payments. What do you think @briancavalier ?","created_at":"2016-05-18T16:36:00Z","updated_at":"2016-05-18T16:36:00Z","html_url":"https://github.com/nowait/amqp/pull/6#discussion_r63737800","pull_request_url":"https://api.github.com/repos/nowait/amqp/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/nowait/amqp/pulls/comments/63737800"},"html":{"href":"https://github.com/nowait/amqp/pull/6#discussion_r63737800"},"pull_request":{"href":"https://api.github.com/repos/nowait/amqp/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/nowait/amqp/pulls/6","id":70366005,"html_url":"https://github.com/nowait/amqp/pull/6","diff_url":"https://github.com/nowait/amqp/pull/6.diff","patch_url":"https://github.com/nowait/amqp/pull/6.patch","issue_url":"https://api.github.com/repos/nowait/amqp/issues/6","number":6,"state":"open","locked":false,"title":"Add alwaysAck and fix flowtype","user":{"login":"raychan","id":709013,"avatar_url":"https://avatars.githubusercontent.com/u/709013?v=3","gravatar_id":"","url":"https://api.github.com/users/raychan","html_url":"https://github.com/raychan","followers_url":"https://api.github.com/users/raychan/followers","following_url":"https://api.github.com/users/raychan/following{/other_user}","gists_url":"https://api.github.com/users/raychan/gists{/gist_id}","starred_url":"https://api.github.com/users/raychan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raychan/subscriptions","organizations_url":"https://api.github.com/users/raychan/orgs","repos_url":"https://api.github.com/users/raychan/repos","events_url":"https://api.github.com/users/raychan/events{/privacy}","received_events_url":"https://api.github.com/users/raychan/received_events","type":"User","site_admin":false},"body":"I am working on https://nowait.atlassian.net/browse/DEV-4605\r\nModified payments to use this package.\r\n\r\nTwo issues:\r\n(1) alwaysAck was added after the package was extracted\r\n(2) Flow is complain about type of `consumeFrom`","created_at":"2016-05-17T14:23:54Z","updated_at":"2016-05-18T16:36:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27e0e6ab0d31e04afa9212381b7c07db5c4e12af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nowait/amqp/pulls/6/commits","review_comments_url":"https://api.github.com/repos/nowait/amqp/pulls/6/comments","review_comment_url":"https://api.github.com/repos/nowait/amqp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nowait/amqp/issues/6/comments","statuses_url":"https://api.github.com/repos/nowait/amqp/statuses/d0846c5db23ccbcec8e42c906b854419a07ef76e","head":{"label":"nowait:add-alwaysAck","ref":"add-alwaysAck","sha":"d0846c5db23ccbcec8e42c906b854419a07ef76e","user":{"login":"nowait","id":13244839,"avatar_url":"https://avatars.githubusercontent.com/u/13244839?v=3","gravatar_id":"","url":"https://api.github.com/users/nowait","html_url":"https://github.com/nowait","followers_url":"https://api.github.com/users/nowait/followers","following_url":"https://api.github.com/users/nowait/following{/other_user}","gists_url":"https://api.github.com/users/nowait/gists{/gist_id}","starred_url":"https://api.github.com/users/nowait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowait/subscriptions","organizations_url":"https://api.github.com/users/nowait/orgs","repos_url":"https://api.github.com/users/nowait/repos","events_url":"https://api.github.com/users/nowait/events{/privacy}","received_events_url":"https://api.github.com/users/nowait/received_events","type":"Organization","site_admin":false},"repo":{"id":54212512,"name":"amqp","full_name":"nowait/amqp","owner":{"login":"nowait","id":13244839,"avatar_url":"https://avatars.githubusercontent.com/u/13244839?v=3","gravatar_id":"","url":"https://api.github.com/users/nowait","html_url":"https://github.com/nowait","followers_url":"https://api.github.com/users/nowait/followers","following_url":"https://api.github.com/users/nowait/following{/other_user}","gists_url":"https://api.github.com/users/nowait/gists{/gist_id}","starred_url":"https://api.github.com/users/nowait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowait/subscriptions","organizations_url":"https://api.github.com/users/nowait/orgs","repos_url":"https://api.github.com/users/nowait/repos","events_url":"https://api.github.com/users/nowait/events{/privacy}","received_events_url":"https://api.github.com/users/nowait/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nowait/amqp","description":"Simplified publish/subscribe and connection retry handling for amqp (rabbitmq)","fork":false,"url":"https://api.github.com/repos/nowait/amqp","forks_url":"https://api.github.com/repos/nowait/amqp/forks","keys_url":"https://api.github.com/repos/nowait/amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nowait/amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nowait/amqp/teams","hooks_url":"https://api.github.com/repos/nowait/amqp/hooks","issue_events_url":"https://api.github.com/repos/nowait/amqp/issues/events{/number}","events_url":"https://api.github.com/repos/nowait/amqp/events","assignees_url":"https://api.github.com/repos/nowait/amqp/assignees{/user}","branches_url":"https://api.github.com/repos/nowait/amqp/branches{/branch}","tags_url":"https://api.github.com/repos/nowait/amqp/tags","blobs_url":"https://api.github.com/repos/nowait/amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nowait/amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nowait/amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/nowait/amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nowait/amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/nowait/amqp/languages","stargazers_url":"https://api.github.com/repos/nowait/amqp/stargazers","contributors_url":"https://api.github.com/repos/nowait/amqp/contributors","subscribers_url":"https://api.github.com/repos/nowait/amqp/subscribers","subscription_url":"https://api.github.com/repos/nowait/amqp/subscription","commits_url":"https://api.github.com/repos/nowait/amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/nowait/amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/nowait/amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/nowait/amqp/issues/comments{/number}","contents_url":"https://api.github.com/repos/nowait/amqp/contents/{+path}","compare_url":"https://api.github.com/repos/nowait/amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nowait/amqp/merges","archive_url":"https://api.github.com/repos/nowait/amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nowait/amqp/downloads","issues_url":"https://api.github.com/repos/nowait/amqp/issues{/number}","pulls_url":"https://api.github.com/repos/nowait/amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/nowait/amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/nowait/amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nowait/amqp/labels{/name}","releases_url":"https://api.github.com/repos/nowait/amqp/releases{/id}","deployments_url":"https://api.github.com/repos/nowait/amqp/deployments","created_at":"2016-03-18T15:37:53Z","updated_at":"2016-03-23T21:31:04Z","pushed_at":"2016-05-17T20:02:29Z","git_url":"git://github.com/nowait/amqp.git","ssh_url":"git@github.com:nowait/amqp.git","clone_url":"https://github.com/nowait/amqp.git","svn_url":"https://github.com/nowait/amqp","homepage":null,"size":23,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"nowait:master","ref":"master","sha":"0d88de45c09ee6d74a1f319ea3e2f61454e6d25d","user":{"login":"nowait","id":13244839,"avatar_url":"https://avatars.githubusercontent.com/u/13244839?v=3","gravatar_id":"","url":"https://api.github.com/users/nowait","html_url":"https://github.com/nowait","followers_url":"https://api.github.com/users/nowait/followers","following_url":"https://api.github.com/users/nowait/following{/other_user}","gists_url":"https://api.github.com/users/nowait/gists{/gist_id}","starred_url":"https://api.github.com/users/nowait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowait/subscriptions","organizations_url":"https://api.github.com/users/nowait/orgs","repos_url":"https://api.github.com/users/nowait/repos","events_url":"https://api.github.com/users/nowait/events{/privacy}","received_events_url":"https://api.github.com/users/nowait/received_events","type":"Organization","site_admin":false},"repo":{"id":54212512,"name":"amqp","full_name":"nowait/amqp","owner":{"login":"nowait","id":13244839,"avatar_url":"https://avatars.githubusercontent.com/u/13244839?v=3","gravatar_id":"","url":"https://api.github.com/users/nowait","html_url":"https://github.com/nowait","followers_url":"https://api.github.com/users/nowait/followers","following_url":"https://api.github.com/users/nowait/following{/other_user}","gists_url":"https://api.github.com/users/nowait/gists{/gist_id}","starred_url":"https://api.github.com/users/nowait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowait/subscriptions","organizations_url":"https://api.github.com/users/nowait/orgs","repos_url":"https://api.github.com/users/nowait/repos","events_url":"https://api.github.com/users/nowait/events{/privacy}","received_events_url":"https://api.github.com/users/nowait/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nowait/amqp","description":"Simplified publish/subscribe and connection retry handling for amqp (rabbitmq)","fork":false,"url":"https://api.github.com/repos/nowait/amqp","forks_url":"https://api.github.com/repos/nowait/amqp/forks","keys_url":"https://api.github.com/repos/nowait/amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nowait/amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nowait/amqp/teams","hooks_url":"https://api.github.com/repos/nowait/amqp/hooks","issue_events_url":"https://api.github.com/repos/nowait/amqp/issues/events{/number}","events_url":"https://api.github.com/repos/nowait/amqp/events","assignees_url":"https://api.github.com/repos/nowait/amqp/assignees{/user}","branches_url":"https://api.github.com/repos/nowait/amqp/branches{/branch}","tags_url":"https://api.github.com/repos/nowait/amqp/tags","blobs_url":"https://api.github.com/repos/nowait/amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nowait/amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nowait/amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/nowait/amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nowait/amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/nowait/amqp/languages","stargazers_url":"https://api.github.com/repos/nowait/amqp/stargazers","contributors_url":"https://api.github.com/repos/nowait/amqp/contributors","subscribers_url":"https://api.github.com/repos/nowait/amqp/subscribers","subscription_url":"https://api.github.com/repos/nowait/amqp/subscription","commits_url":"https://api.github.com/repos/nowait/amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/nowait/amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/nowait/amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/nowait/amqp/issues/comments{/number}","contents_url":"https://api.github.com/repos/nowait/amqp/contents/{+path}","compare_url":"https://api.github.com/repos/nowait/amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nowait/amqp/merges","archive_url":"https://api.github.com/repos/nowait/amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nowait/amqp/downloads","issues_url":"https://api.github.com/repos/nowait/amqp/issues{/number}","pulls_url":"https://api.github.com/repos/nowait/amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/nowait/amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/nowait/amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nowait/amqp/labels{/name}","releases_url":"https://api.github.com/repos/nowait/amqp/releases{/id}","deployments_url":"https://api.github.com/repos/nowait/amqp/deployments","created_at":"2016-03-18T15:37:53Z","updated_at":"2016-03-23T21:31:04Z","pushed_at":"2016-05-17T20:02:29Z","git_url":"git://github.com/nowait/amqp.git","ssh_url":"git@github.com:nowait/amqp.git","clone_url":"https://github.com/nowait/amqp.git","svn_url":"https://github.com/nowait/amqp","homepage":null,"size":23,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nowait/amqp/pulls/6"},"html":{"href":"https://github.com/nowait/amqp/pull/6"},"issue":{"href":"https://api.github.com/repos/nowait/amqp/issues/6"},"comments":{"href":"https://api.github.com/repos/nowait/amqp/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/nowait/amqp/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/nowait/amqp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nowait/amqp/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/nowait/amqp/statuses/d0846c5db23ccbcec8e42c906b854419a07ef76e"}}}}