{"action":"created","comment":{"url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/comments/83672817","pull_request_review_id":4500926,"id":83672817,"diff_hunk":"@@ -16,10 +15,23 @@ class RabbitStressor {\n     this.channel = await this.connection.createChannel();\n   }\n \n-  sendMessages(queueName, messages) {\n+  sendMessages(queueName, messages, delayBetweenMessages) {\n     assert(messages instanceof Array);\n     this.channel.assertQueue(queueName, {durable: false});\n-    messages.forEach(message => this.channel.sendToQueue(queueName, new Buffer(message)));\n+    return new Promise(resolve => this._sendMessagesOverInterval(queueName, messages, delayBetweenMessages, resolve));\n+  }\n+\n+  _sendMessagesOverInterval(queueName, messages, delayBetweenMessages, resolvePromise) {\n+    let index = 0;\n+    const intervalId = setInterval(() => {","path":"bin/rabbitstressor.js","position":22,"original_position":22,"commit_id":"7fe12f33e7d689b2b82083073e2c1810d8d18f53","original_commit_id":"7fe12f33e7d689b2b82083073e2c1810d8d18f53","user":{"login":"itsbriany","id":6740119,"avatar_url":"https://avatars.githubusercontent.com/u/6740119?v=3","gravatar_id":"","url":"https://api.github.com/users/itsbriany","html_url":"https://github.com/itsbriany","followers_url":"https://api.github.com/users/itsbriany/followers","following_url":"https://api.github.com/users/itsbriany/following{/other_user}","gists_url":"https://api.github.com/users/itsbriany/gists{/gist_id}","starred_url":"https://api.github.com/users/itsbriany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsbriany/subscriptions","organizations_url":"https://api.github.com/users/itsbriany/orgs","repos_url":"https://api.github.com/users/itsbriany/repos","events_url":"https://api.github.com/users/itsbriany/events{/privacy}","received_events_url":"https://api.github.com/users/itsbriany/received_events","type":"User","site_admin":false},"body":"I am assuming `setInterval` ++ is a thumbs up for using `setInterval`? :)","created_at":"2016-10-17T15:46:29Z","updated_at":"2016-10-17T15:46:29Z","html_url":"https://github.com/taskcluster/taskcluster-pulse/pull/25#discussion_r83672817","pull_request_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/comments/83672817"},"html":{"href":"https://github.com/taskcluster/taskcluster-pulse/pull/25#discussion_r83672817"},"pull_request":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25","id":89543003,"html_url":"https://github.com/taskcluster/taskcluster-pulse/pull/25","diff_url":"https://github.com/taskcluster/taskcluster-pulse/pull/25.diff","patch_url":"https://github.com/taskcluster/taskcluster-pulse/pull/25.patch","issue_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/25","number":25,"state":"open","locked":false,"title":"Stressor","user":{"login":"itsbriany","id":6740119,"avatar_url":"https://avatars.githubusercontent.com/u/6740119?v=3","gravatar_id":"","url":"https://api.github.com/users/itsbriany","html_url":"https://github.com/itsbriany","followers_url":"https://api.github.com/users/itsbriany/followers","following_url":"https://api.github.com/users/itsbriany/following{/other_user}","gists_url":"https://api.github.com/users/itsbriany/gists{/gist_id}","starred_url":"https://api.github.com/users/itsbriany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsbriany/subscriptions","organizations_url":"https://api.github.com/users/itsbriany/orgs","repos_url":"https://api.github.com/users/itsbriany/repos","events_url":"https://api.github.com/users/itsbriany/events{/privacy}","received_events_url":"https://api.github.com/users/itsbriany/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-16T22:42:21Z","updated_at":"2016-10-17T15:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9dcf669b17346bacbbe06e92617e2173cf42de6e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25/commits","review_comments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25/comments","review_comment_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/25/comments","statuses_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/statuses/7fe12f33e7d689b2b82083073e2c1810d8d18f53","head":{"label":"taskcluster:stressor","ref":"stressor","sha":"7fe12f33e7d689b2b82083073e2c1810d8d18f53","user":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"repo":{"id":68056844,"name":"taskcluster-pulse","full_name":"taskcluster/taskcluster-pulse","owner":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taskcluster/taskcluster-pulse","description":"Get pulse user, given a taskcluster credentials with scopes.","fork":false,"url":"https://api.github.com/repos/taskcluster/taskcluster-pulse","forks_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/forks","keys_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/teams","hooks_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/hooks","issue_events_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/events{/number}","events_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/events","assignees_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/assignees{/user}","branches_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/branches{/branch}","tags_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/tags","blobs_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/statuses/{sha}","languages_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/languages","stargazers_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/stargazers","contributors_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/contributors","subscribers_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/subscribers","subscription_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/subscription","commits_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/contents/{+path}","compare_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/merges","archive_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/downloads","issues_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues{/number}","pulls_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls{/number}","milestones_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/milestones{/number}","notifications_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/labels{/name}","releases_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/releases{/id}","deployments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/deployments","created_at":"2016-09-12T23:38:47Z","updated_at":"2016-09-23T13:35:22Z","pushed_at":"2016-10-17T15:11:51Z","git_url":"git://github.com/taskcluster/taskcluster-pulse.git","ssh_url":"git@github.com:taskcluster/taskcluster-pulse.git","clone_url":"https://github.com/taskcluster/taskcluster-pulse.git","svn_url":"https://github.com/taskcluster/taskcluster-pulse","homepage":null,"size":111,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"taskcluster:master","ref":"master","sha":"fb259bc0da93f6011298f145636e1999f832b430","user":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"repo":{"id":68056844,"name":"taskcluster-pulse","full_name":"taskcluster/taskcluster-pulse","owner":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taskcluster/taskcluster-pulse","description":"Get pulse user, given a taskcluster credentials with scopes.","fork":false,"url":"https://api.github.com/repos/taskcluster/taskcluster-pulse","forks_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/forks","keys_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/teams","hooks_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/hooks","issue_events_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/events{/number}","events_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/events","assignees_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/assignees{/user}","branches_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/branches{/branch}","tags_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/tags","blobs_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/statuses/{sha}","languages_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/languages","stargazers_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/stargazers","contributors_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/contributors","subscribers_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/subscribers","subscription_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/subscription","commits_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/contents/{+path}","compare_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/merges","archive_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/downloads","issues_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues{/number}","pulls_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls{/number}","milestones_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/milestones{/number}","notifications_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/labels{/name}","releases_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/releases{/id}","deployments_url":"https://api.github.com/repos/taskcluster/taskcluster-pulse/deployments","created_at":"2016-09-12T23:38:47Z","updated_at":"2016-09-23T13:35:22Z","pushed_at":"2016-10-17T15:11:51Z","git_url":"git://github.com/taskcluster/taskcluster-pulse.git","ssh_url":"git@github.com:taskcluster/taskcluster-pulse.git","clone_url":"https://github.com/taskcluster/taskcluster-pulse.git","svn_url":"https://github.com/taskcluster/taskcluster-pulse","homepage":null,"size":111,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25"},"html":{"href":"https://github.com/taskcluster/taskcluster-pulse/pull/25"},"issue":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/25"},"comments":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/taskcluster/taskcluster-pulse/statuses/7fe12f33e7d689b2b82083073e2c1810d8d18f53"}}}}
{"actor":{"display_login":"itsbriany"}}