{"action":"closed","number":48,"pull_request":{"url":"https://api.github.com/repos/atlassian/gostatsd/pulls/48","id":75241593,"html_url":"https://github.com/atlassian/gostatsd/pull/48","diff_url":"https://github.com/atlassian/gostatsd/pull/48.diff","patch_url":"https://github.com/atlassian/gostatsd/pull/48.patch","issue_url":"https://api.github.com/repos/atlassian/gostatsd/issues/48","number":48,"state":"closed","locked":false,"title":"Add maxConcurrency argument to NewDispatchingHandler to rate limit active goroutines","user":{"login":"mark-adams","id":472350,"avatar_url":"https://avatars.githubusercontent.com/u/472350?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-adams","html_url":"https://github.com/mark-adams","followers_url":"https://api.github.com/users/mark-adams/followers","following_url":"https://api.github.com/users/mark-adams/following{/other_user}","gists_url":"https://api.github.com/users/mark-adams/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-adams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-adams/subscriptions","organizations_url":"https://api.github.com/users/mark-adams/orgs","repos_url":"https://api.github.com/users/mark-adams/repos","events_url":"https://api.github.com/users/mark-adams/events{/privacy}","received_events_url":"https://api.github.com/users/mark-adams/received_events","type":"User","site_admin":false},"body":"Fixes #24.\r\n\r\nPreviously, the number of goroutines created by calls to DispatchEvent()\r\nwas unrestricted. This commit adds a new argument to\r\nNewDispatchingHandler, backed by a new dispatchLimiter struct, that\r\nlimits the number of goroutines that DispatchEvent() can have in flight\r\nat one time.\r\n\r\nThis is based heavily off the design of LimitListener from golang/net\r\n\r\nTODO:\r\n\r\n- [ ] Write tests\r\n- [ ] Implement configuration mechanism for specifying maxConcurrency\r\n\r\nBefore completing the remaining tasks, I'd love to get some design feedback. ","created_at":"2016-06-26T21:46:41Z","updated_at":"2016-07-04T23:07:02Z","closed_at":"2016-07-04T23:07:02Z","merged_at":null,"merge_commit_sha":"d2ac5772fe7f918b06c6d5defaeacd24052d6e72","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/atlassian/gostatsd/pulls/48/commits","review_comments_url":"https://api.github.com/repos/atlassian/gostatsd/pulls/48/comments","review_comment_url":"https://api.github.com/repos/atlassian/gostatsd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atlassian/gostatsd/issues/48/comments","statuses_url":"https://api.github.com/repos/atlassian/gostatsd/statuses/7e31e4ff609e165829885e5a8a13e77efd19164a","head":{"label":"atlassian:add-rate-limit-to-dispatch","ref":"add-rate-limit-to-dispatch","sha":"7e31e4ff609e165829885e5a8a13e77efd19164a","user":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"repo":{"id":55813517,"name":"gostatsd","full_name":"atlassian/gostatsd","owner":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlassian/gostatsd","description":"An implementation of Etsy's statsd in Go with tags support","fork":false,"url":"https://api.github.com/repos/atlassian/gostatsd","forks_url":"https://api.github.com/repos/atlassian/gostatsd/forks","keys_url":"https://api.github.com/repos/atlassian/gostatsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlassian/gostatsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlassian/gostatsd/teams","hooks_url":"https://api.github.com/repos/atlassian/gostatsd/hooks","issue_events_url":"https://api.github.com/repos/atlassian/gostatsd/issues/events{/number}","events_url":"https://api.github.com/repos/atlassian/gostatsd/events","assignees_url":"https://api.github.com/repos/atlassian/gostatsd/assignees{/user}","branches_url":"https://api.github.com/repos/atlassian/gostatsd/branches{/branch}","tags_url":"https://api.github.com/repos/atlassian/gostatsd/tags","blobs_url":"https://api.github.com/repos/atlassian/gostatsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlassian/gostatsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlassian/gostatsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlassian/gostatsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlassian/gostatsd/statuses/{sha}","languages_url":"https://api.github.com/repos/atlassian/gostatsd/languages","stargazers_url":"https://api.github.com/repos/atlassian/gostatsd/stargazers","contributors_url":"https://api.github.com/repos/atlassian/gostatsd/contributors","subscribers_url":"https://api.github.com/repos/atlassian/gostatsd/subscribers","subscription_url":"https://api.github.com/repos/atlassian/gostatsd/subscription","commits_url":"https://api.github.com/repos/atlassian/gostatsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlassian/gostatsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlassian/gostatsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlassian/gostatsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlassian/gostatsd/contents/{+path}","compare_url":"https://api.github.com/repos/atlassian/gostatsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlassian/gostatsd/merges","archive_url":"https://api.github.com/repos/atlassian/gostatsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlassian/gostatsd/downloads","issues_url":"https://api.github.com/repos/atlassian/gostatsd/issues{/number}","pulls_url":"https://api.github.com/repos/atlassian/gostatsd/pulls{/number}","milestones_url":"https://api.github.com/repos/atlassian/gostatsd/milestones{/number}","notifications_url":"https://api.github.com/repos/atlassian/gostatsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlassian/gostatsd/labels{/name}","releases_url":"https://api.github.com/repos/atlassian/gostatsd/releases{/id}","deployments_url":"https://api.github.com/repos/atlassian/gostatsd/deployments","created_at":"2016-04-08T22:29:32Z","updated_at":"2016-07-01T05:41:39Z","pushed_at":"2016-07-04T23:05:59Z","git_url":"git://github.com/atlassian/gostatsd.git","ssh_url":"git@github.com:atlassian/gostatsd.git","clone_url":"https://github.com/atlassian/gostatsd.git","svn_url":"https://github.com/atlassian/gostatsd","homepage":"","size":371,"stargazers_count":42,"watchers_count":42,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":42,"default_branch":"master"}},"base":{"label":"atlassian:master","ref":"master","sha":"38af991e868bdfd92a18dc204be527701865b658","user":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"repo":{"id":55813517,"name":"gostatsd","full_name":"atlassian/gostatsd","owner":{"login":"atlassian","id":168166,"avatar_url":"https://avatars.githubusercontent.com/u/168166?v=3","gravatar_id":"","url":"https://api.github.com/users/atlassian","html_url":"https://github.com/atlassian","followers_url":"https://api.github.com/users/atlassian/followers","following_url":"https://api.github.com/users/atlassian/following{/other_user}","gists_url":"https://api.github.com/users/atlassian/gists{/gist_id}","starred_url":"https://api.github.com/users/atlassian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlassian/subscriptions","organizations_url":"https://api.github.com/users/atlassian/orgs","repos_url":"https://api.github.com/users/atlassian/repos","events_url":"https://api.github.com/users/atlassian/events{/privacy}","received_events_url":"https://api.github.com/users/atlassian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlassian/gostatsd","description":"An implementation of Etsy's statsd in Go with tags support","fork":false,"url":"https://api.github.com/repos/atlassian/gostatsd","forks_url":"https://api.github.com/repos/atlassian/gostatsd/forks","keys_url":"https://api.github.com/repos/atlassian/gostatsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlassian/gostatsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlassian/gostatsd/teams","hooks_url":"https://api.github.com/repos/atlassian/gostatsd/hooks","issue_events_url":"https://api.github.com/repos/atlassian/gostatsd/issues/events{/number}","events_url":"https://api.github.com/repos/atlassian/gostatsd/events","assignees_url":"https://api.github.com/repos/atlassian/gostatsd/assignees{/user}","branches_url":"https://api.github.com/repos/atlassian/gostatsd/branches{/branch}","tags_url":"https://api.github.com/repos/atlassian/gostatsd/tags","blobs_url":"https://api.github.com/repos/atlassian/gostatsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlassian/gostatsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlassian/gostatsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlassian/gostatsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlassian/gostatsd/statuses/{sha}","languages_url":"https://api.github.com/repos/atlassian/gostatsd/languages","stargazers_url":"https://api.github.com/repos/atlassian/gostatsd/stargazers","contributors_url":"https://api.github.com/repos/atlassian/gostatsd/contributors","subscribers_url":"https://api.github.com/repos/atlassian/gostatsd/subscribers","subscription_url":"https://api.github.com/repos/atlassian/gostatsd/subscription","commits_url":"https://api.github.com/repos/atlassian/gostatsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlassian/gostatsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlassian/gostatsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlassian/gostatsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlassian/gostatsd/contents/{+path}","compare_url":"https://api.github.com/repos/atlassian/gostatsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlassian/gostatsd/merges","archive_url":"https://api.github.com/repos/atlassian/gostatsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlassian/gostatsd/downloads","issues_url":"https://api.github.com/repos/atlassian/gostatsd/issues{/number}","pulls_url":"https://api.github.com/repos/atlassian/gostatsd/pulls{/number}","milestones_url":"https://api.github.com/repos/atlassian/gostatsd/milestones{/number}","notifications_url":"https://api.github.com/repos/atlassian/gostatsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlassian/gostatsd/labels{/name}","releases_url":"https://api.github.com/repos/atlassian/gostatsd/releases{/id}","deployments_url":"https://api.github.com/repos/atlassian/gostatsd/deployments","created_at":"2016-04-08T22:29:32Z","updated_at":"2016-07-01T05:41:39Z","pushed_at":"2016-07-04T23:05:59Z","git_url":"git://github.com/atlassian/gostatsd.git","ssh_url":"git@github.com:atlassian/gostatsd.git","clone_url":"https://github.com/atlassian/gostatsd.git","svn_url":"https://github.com/atlassian/gostatsd","homepage":"","size":371,"stargazers_count":42,"watchers_count":42,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atlassian/gostatsd/pulls/48"},"html":{"href":"https://github.com/atlassian/gostatsd/pull/48"},"issue":{"href":"https://api.github.com/repos/atlassian/gostatsd/issues/48"},"comments":{"href":"https://api.github.com/repos/atlassian/gostatsd/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/atlassian/gostatsd/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/atlassian/gostatsd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atlassian/gostatsd/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/atlassian/gostatsd/statuses/7e31e4ff609e165829885e5a8a13e77efd19164a"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":33,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"ash2k"}}