{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/comments/24335631","id":24335631,"diff_hunk":"@@ -10,15 +10,24 @@\n from gh_pages import index as gh_pages\n from gh_issues import index as gh_issues\n \n-gh_pool = urllib3.connection_from_url(settings.GITHUB.get('GH', {}).get('WEB'), maxsize=50, block=True)\n+headers = {\n+    'keep_alive': True,\n+    'user_agent': 'cfpb-tiresias',\n+}\n+\n gh_api_client = Client(gh_settings.get('API'))","path":"server/indexers/gh.py","position":21,"original_position":21,"commit_id":"2b8710dd8d4300ab7a765304323a67b6c1e5c26c","original_commit_id":"db1b6910edc2114b782060a77d612f60a6addd9c","user":{"login":"dgreisen-cfpb","id":6369769,"avatar_url":"https://avatars.githubusercontent.com/u/6369769?v=3","gravatar_id":"","url":"https://api.github.com/users/dgreisen-cfpb","html_url":"https://github.com/dgreisen-cfpb","followers_url":"https://api.github.com/users/dgreisen-cfpb/followers","following_url":"https://api.github.com/users/dgreisen-cfpb/following{/other_user}","gists_url":"https://api.github.com/users/dgreisen-cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgreisen-cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgreisen-cfpb/subscriptions","organizations_url":"https://api.github.com/users/dgreisen-cfpb/orgs","repos_url":"https://api.github.com/users/dgreisen-cfpb/repos","events_url":"https://api.github.com/users/dgreisen-cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/dgreisen-cfpb/received_events","type":"User","site_admin":false},"body":"it's still used in the tests. The tests will need to be cleaned up before the uc instances can be removed.\r\n\r\nthey could be moved to the test code, though","created_at":"2015-02-09T15:30:25Z","updated_at":"2015-02-09T15:30:25Z","html_url":"https://github.com/cfpb/github-wiki-search/pull/75#discussion_r24335631","pull_request_url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/comments/24335631"},"html":{"href":"https://github.com/cfpb/github-wiki-search/pull/75#discussion_r24335631"},"pull_request":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75","id":28867314,"html_url":"https://github.com/cfpb/github-wiki-search/pull/75","diff_url":"https://github.com/cfpb/github-wiki-search/pull/75.diff","patch_url":"https://github.com/cfpb/github-wiki-search/pull/75.patch","issue_url":"https://api.github.com/repos/cfpb/github-wiki-search/issues/75","number":75,"state":"open","locked":false,"title":"More faster","user":{"login":"dgreisen-cfpb","id":6369769,"avatar_url":"https://avatars.githubusercontent.com/u/6369769?v=3","gravatar_id":"","url":"https://api.github.com/users/dgreisen-cfpb","html_url":"https://github.com/dgreisen-cfpb","followers_url":"https://api.github.com/users/dgreisen-cfpb/followers","following_url":"https://api.github.com/users/dgreisen-cfpb/following{/other_user}","gists_url":"https://api.github.com/users/dgreisen-cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgreisen-cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgreisen-cfpb/subscriptions","organizations_url":"https://api.github.com/users/dgreisen-cfpb/orgs","repos_url":"https://api.github.com/users/dgreisen-cfpb/repos","events_url":"https://api.github.com/users/dgreisen-cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/dgreisen-cfpb/received_events","type":"User","site_admin":false},"body":"this also contains all of #74. switch over most of universalclient to urllib3. also geventize git calls. 1/3 faster with no caching (45 -> 30 min). 50% faster with caching (30 -> 15 min).","created_at":"2015-02-07T17:51:32Z","updated_at":"2015-02-09T15:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0619d4c6c6715e6967589a1303cdd8f6fe47ca97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75/commits","review_comments_url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75/comments","review_comment_url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cfpb/github-wiki-search/issues/75/comments","statuses_url":"https://api.github.com/repos/cfpb/github-wiki-search/statuses/2b8710dd8d4300ab7a765304323a67b6c1e5c26c","head":{"label":"dgreisen-cfpb:more_faster","ref":"more_faster","sha":"2b8710dd8d4300ab7a765304323a67b6c1e5c26c","user":{"login":"dgreisen-cfpb","id":6369769,"avatar_url":"https://avatars.githubusercontent.com/u/6369769?v=3","gravatar_id":"","url":"https://api.github.com/users/dgreisen-cfpb","html_url":"https://github.com/dgreisen-cfpb","followers_url":"https://api.github.com/users/dgreisen-cfpb/followers","following_url":"https://api.github.com/users/dgreisen-cfpb/following{/other_user}","gists_url":"https://api.github.com/users/dgreisen-cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgreisen-cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgreisen-cfpb/subscriptions","organizations_url":"https://api.github.com/users/dgreisen-cfpb/orgs","repos_url":"https://api.github.com/users/dgreisen-cfpb/repos","events_url":"https://api.github.com/users/dgreisen-cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/dgreisen-cfpb/received_events","type":"User","site_admin":false},"repo":{"id":17216839,"name":"github-wiki-search","full_name":"dgreisen-cfpb/github-wiki-search","owner":{"login":"dgreisen-cfpb","id":6369769,"avatar_url":"https://avatars.githubusercontent.com/u/6369769?v=3","gravatar_id":"","url":"https://api.github.com/users/dgreisen-cfpb","html_url":"https://github.com/dgreisen-cfpb","followers_url":"https://api.github.com/users/dgreisen-cfpb/followers","following_url":"https://api.github.com/users/dgreisen-cfpb/following{/other_user}","gists_url":"https://api.github.com/users/dgreisen-cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgreisen-cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgreisen-cfpb/subscriptions","organizations_url":"https://api.github.com/users/dgreisen-cfpb/orgs","repos_url":"https://api.github.com/users/dgreisen-cfpb/repos","events_url":"https://api.github.com/users/dgreisen-cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/dgreisen-cfpb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgreisen-cfpb/github-wiki-search","description":"","fork":true,"url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search","forks_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/forks","keys_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/teams","hooks_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/hooks","issue_events_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/issues/events{/number}","events_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/events","assignees_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/assignees{/user}","branches_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/branches{/branch}","tags_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/tags","blobs_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/statuses/{sha}","languages_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/languages","stargazers_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/stargazers","contributors_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/contributors","subscribers_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/subscribers","subscription_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/subscription","commits_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/issues/comments/{number}","contents_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/contents/{+path}","compare_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/merges","archive_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/downloads","issues_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/issues{/number}","pulls_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/pulls{/number}","milestones_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/milestones{/number}","notifications_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/labels{/name}","releases_url":"https://api.github.com/repos/dgreisen-cfpb/github-wiki-search/releases{/id}","created_at":"2014-02-26T16:22:54Z","updated_at":"2015-02-06T23:04:38Z","pushed_at":"2015-02-09T15:29:36Z","git_url":"git://github.com/dgreisen-cfpb/github-wiki-search.git","ssh_url":"git@github.com:dgreisen-cfpb/github-wiki-search.git","clone_url":"https://github.com/dgreisen-cfpb/github-wiki-search.git","svn_url":"https://github.com/dgreisen-cfpb/github-wiki-search","homepage":null,"size":1498,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cfpb:master","ref":"master","sha":"ee3bfd3c5cf3fd70a1baebfc5278edfaada084fd","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":17216762,"name":"github-wiki-search","full_name":"cfpb/github-wiki-search","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/github-wiki-search","description":"","fork":false,"url":"https://api.github.com/repos/cfpb/github-wiki-search","forks_url":"https://api.github.com/repos/cfpb/github-wiki-search/forks","keys_url":"https://api.github.com/repos/cfpb/github-wiki-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/github-wiki-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/github-wiki-search/teams","hooks_url":"https://api.github.com/repos/cfpb/github-wiki-search/hooks","issue_events_url":"https://api.github.com/repos/cfpb/github-wiki-search/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/github-wiki-search/events","assignees_url":"https://api.github.com/repos/cfpb/github-wiki-search/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/github-wiki-search/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/github-wiki-search/tags","blobs_url":"https://api.github.com/repos/cfpb/github-wiki-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/github-wiki-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/github-wiki-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/github-wiki-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/github-wiki-search/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/github-wiki-search/languages","stargazers_url":"https://api.github.com/repos/cfpb/github-wiki-search/stargazers","contributors_url":"https://api.github.com/repos/cfpb/github-wiki-search/contributors","subscribers_url":"https://api.github.com/repos/cfpb/github-wiki-search/subscribers","subscription_url":"https://api.github.com/repos/cfpb/github-wiki-search/subscription","commits_url":"https://api.github.com/repos/cfpb/github-wiki-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/github-wiki-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/github-wiki-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/github-wiki-search/issues/comments/{number}","contents_url":"https://api.github.com/repos/cfpb/github-wiki-search/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/github-wiki-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/github-wiki-search/merges","archive_url":"https://api.github.com/repos/cfpb/github-wiki-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/github-wiki-search/downloads","issues_url":"https://api.github.com/repos/cfpb/github-wiki-search/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/github-wiki-search/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/github-wiki-search/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/github-wiki-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/github-wiki-search/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/github-wiki-search/releases{/id}","created_at":"2014-02-26T16:20:33Z","updated_at":"2015-02-09T14:32:34Z","pushed_at":"2015-02-09T14:32:34Z","git_url":"git://github.com/cfpb/github-wiki-search.git","ssh_url":"git@github.com:cfpb/github-wiki-search.git","clone_url":"https://github.com/cfpb/github-wiki-search.git","svn_url":"https://github.com/cfpb/github-wiki-search","homepage":null,"size":7402,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":17,"forks":8,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75"},"html":{"href":"https://github.com/cfpb/github-wiki-search/pull/75"},"issue":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/issues/75"},"comments":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/github-wiki-search/statuses/2b8710dd8d4300ab7a765304323a67b6c1e5c26c"}}}}