{"action":"created","comment":{"url":"https://api.github.com/repos/chihaya/chihaya/pulls/comments/58284888","id":58284888,"diff_hunk":"@@ -48,7 +52,9 @@ func newPeerStoreConfig(storecfg *store.DriverConfig) (*peerStoreConfig, error)\n \tif err != nil {\n \t\treturn nil, err\n \t}\n-\n+\tif cfg.Shards < 1 {","path":"server/store/memory/peer_store.go","position":21,"original_position":21,"commit_id":"bb29d1571c3899b9f33a6a501723239d31698e1c","original_commit_id":"bb29d1571c3899b9f33a6a501723239d31698e1c","user":{"login":"jzelinskie","id":343539,"avatar_url":"https://avatars.githubusercontent.com/u/343539?v=3","gravatar_id":"","url":"https://api.github.com/users/jzelinskie","html_url":"https://github.com/jzelinskie","followers_url":"https://api.github.com/users/jzelinskie/followers","following_url":"https://api.github.com/users/jzelinskie/following{/other_user}","gists_url":"https://api.github.com/users/jzelinskie/gists{/gist_id}","starred_url":"https://api.github.com/users/jzelinskie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzelinskie/subscriptions","organizations_url":"https://api.github.com/users/jzelinskie/orgs","repos_url":"https://api.github.com/users/jzelinskie/repos","events_url":"https://api.github.com/users/jzelinskie/events{/privacy}","received_events_url":"https://api.github.com/users/jzelinskie/received_events","type":"User","site_admin":false},"body":"linebreak above this","created_at":"2016-04-02T00:47:48Z","updated_at":"2016-04-02T00:47:48Z","html_url":"https://github.com/chihaya/chihaya/pull/147#discussion_r58284888","pull_request_url":"https://api.github.com/repos/chihaya/chihaya/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/comments/58284888"},"html":{"href":"https://github.com/chihaya/chihaya/pull/147#discussion_r58284888"},"pull_request":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/chihaya/chihaya/pulls/147","id":64719832,"html_url":"https://github.com/chihaya/chihaya/pull/147","diff_url":"https://github.com/chihaya/chihaya/pull/147.diff","patch_url":"https://github.com/chihaya/chihaya/pull/147.patch","issue_url":"https://api.github.com/repos/chihaya/chihaya/issues/147","number":147,"state":"open","locked":false,"title":"Add peer/seed info helper functions, and tests","user":{"login":"joshdekock","id":15961926,"avatar_url":"https://avatars.githubusercontent.com/u/15961926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdekock","html_url":"https://github.com/joshdekock","followers_url":"https://api.github.com/users/joshdekock/followers","following_url":"https://api.github.com/users/joshdekock/following{/other_user}","gists_url":"https://api.github.com/users/joshdekock/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdekock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdekock/subscriptions","organizations_url":"https://api.github.com/users/joshdekock/orgs","repos_url":"https://api.github.com/users/joshdekock/repos","events_url":"https://api.github.com/users/joshdekock/events{/privacy}","received_events_url":"https://api.github.com/users/joshdekock/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-31T00:48:12Z","updated_at":"2016-04-02T00:47:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30b73a80d63fab12012b8bbd90303e05afaea515","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chihaya/chihaya/pulls/147/commits","review_comments_url":"https://api.github.com/repos/chihaya/chihaya/pulls/147/comments","review_comment_url":"https://api.github.com/repos/chihaya/chihaya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chihaya/chihaya/issues/147/comments","statuses_url":"https://api.github.com/repos/chihaya/chihaya/statuses/bb29d1571c3899b9f33a6a501723239d31698e1c","head":{"label":"joshdekock:middleware-refactor-peer-seed-leech-info","ref":"middleware-refactor-peer-seed-leech-info","sha":"bb29d1571c3899b9f33a6a501723239d31698e1c","user":{"login":"joshdekock","id":15961926,"avatar_url":"https://avatars.githubusercontent.com/u/15961926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdekock","html_url":"https://github.com/joshdekock","followers_url":"https://api.github.com/users/joshdekock/followers","following_url":"https://api.github.com/users/joshdekock/following{/other_user}","gists_url":"https://api.github.com/users/joshdekock/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdekock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdekock/subscriptions","organizations_url":"https://api.github.com/users/joshdekock/orgs","repos_url":"https://api.github.com/users/joshdekock/repos","events_url":"https://api.github.com/users/joshdekock/events{/privacy}","received_events_url":"https://api.github.com/users/joshdekock/received_events","type":"User","site_admin":false},"repo":{"id":54976812,"name":"chihaya","full_name":"joshdekock/chihaya","owner":{"login":"joshdekock","id":15961926,"avatar_url":"https://avatars.githubusercontent.com/u/15961926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdekock","html_url":"https://github.com/joshdekock","followers_url":"https://api.github.com/users/joshdekock/followers","following_url":"https://api.github.com/users/joshdekock/following{/other_user}","gists_url":"https://api.github.com/users/joshdekock/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdekock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdekock/subscriptions","organizations_url":"https://api.github.com/users/joshdekock/orgs","repos_url":"https://api.github.com/users/joshdekock/repos","events_url":"https://api.github.com/users/joshdekock/events{/privacy}","received_events_url":"https://api.github.com/users/joshdekock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshdekock/chihaya","description":"A high-performance BitTorrent tracker in Go.","fork":true,"url":"https://api.github.com/repos/joshdekock/chihaya","forks_url":"https://api.github.com/repos/joshdekock/chihaya/forks","keys_url":"https://api.github.com/repos/joshdekock/chihaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshdekock/chihaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshdekock/chihaya/teams","hooks_url":"https://api.github.com/repos/joshdekock/chihaya/hooks","issue_events_url":"https://api.github.com/repos/joshdekock/chihaya/issues/events{/number}","events_url":"https://api.github.com/repos/joshdekock/chihaya/events","assignees_url":"https://api.github.com/repos/joshdekock/chihaya/assignees{/user}","branches_url":"https://api.github.com/repos/joshdekock/chihaya/branches{/branch}","tags_url":"https://api.github.com/repos/joshdekock/chihaya/tags","blobs_url":"https://api.github.com/repos/joshdekock/chihaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshdekock/chihaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshdekock/chihaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshdekock/chihaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshdekock/chihaya/statuses/{sha}","languages_url":"https://api.github.com/repos/joshdekock/chihaya/languages","stargazers_url":"https://api.github.com/repos/joshdekock/chihaya/stargazers","contributors_url":"https://api.github.com/repos/joshdekock/chihaya/contributors","subscribers_url":"https://api.github.com/repos/joshdekock/chihaya/subscribers","subscription_url":"https://api.github.com/repos/joshdekock/chihaya/subscription","commits_url":"https://api.github.com/repos/joshdekock/chihaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshdekock/chihaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshdekock/chihaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshdekock/chihaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshdekock/chihaya/contents/{+path}","compare_url":"https://api.github.com/repos/joshdekock/chihaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshdekock/chihaya/merges","archive_url":"https://api.github.com/repos/joshdekock/chihaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshdekock/chihaya/downloads","issues_url":"https://api.github.com/repos/joshdekock/chihaya/issues{/number}","pulls_url":"https://api.github.com/repos/joshdekock/chihaya/pulls{/number}","milestones_url":"https://api.github.com/repos/joshdekock/chihaya/milestones{/number}","notifications_url":"https://api.github.com/repos/joshdekock/chihaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshdekock/chihaya/labels{/name}","releases_url":"https://api.github.com/repos/joshdekock/chihaya/releases{/id}","deployments_url":"https://api.github.com/repos/joshdekock/chihaya/deployments","created_at":"2016-03-29T13:12:37Z","updated_at":"2016-03-29T22:20:06Z","pushed_at":"2016-04-01T15:08:31Z","git_url":"git://github.com/joshdekock/chihaya.git","ssh_url":"git@github.com:joshdekock/chihaya.git","clone_url":"https://github.com/joshdekock/chihaya.git","svn_url":"https://github.com/joshdekock/chihaya","homepage":"","size":5793,"stargazers_count":1,"watchers_count":1,"language":"Go","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":1,"default_branch":"master"}},"base":{"label":"chihaya:middleware-refactor","ref":"middleware-refactor","sha":"e9c481e50065fe678a1bf0b66986ac67f5db8000","user":{"login":"chihaya","id":6076200,"avatar_url":"https://avatars.githubusercontent.com/u/6076200?v=3","gravatar_id":"","url":"https://api.github.com/users/chihaya","html_url":"https://github.com/chihaya","followers_url":"https://api.github.com/users/chihaya/followers","following_url":"https://api.github.com/users/chihaya/following{/other_user}","gists_url":"https://api.github.com/users/chihaya/gists{/gist_id}","starred_url":"https://api.github.com/users/chihaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihaya/subscriptions","organizations_url":"https://api.github.com/users/chihaya/orgs","repos_url":"https://api.github.com/users/chihaya/repos","events_url":"https://api.github.com/users/chihaya/events{/privacy}","received_events_url":"https://api.github.com/users/chihaya/received_events","type":"Organization","site_admin":false},"repo":{"id":7399031,"name":"chihaya","full_name":"chihaya/chihaya","owner":{"login":"chihaya","id":6076200,"avatar_url":"https://avatars.githubusercontent.com/u/6076200?v=3","gravatar_id":"","url":"https://api.github.com/users/chihaya","html_url":"https://github.com/chihaya","followers_url":"https://api.github.com/users/chihaya/followers","following_url":"https://api.github.com/users/chihaya/following{/other_user}","gists_url":"https://api.github.com/users/chihaya/gists{/gist_id}","starred_url":"https://api.github.com/users/chihaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihaya/subscriptions","organizations_url":"https://api.github.com/users/chihaya/orgs","repos_url":"https://api.github.com/users/chihaya/repos","events_url":"https://api.github.com/users/chihaya/events{/privacy}","received_events_url":"https://api.github.com/users/chihaya/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chihaya/chihaya","description":"A high-performance BitTorrent tracker in Go.","fork":false,"url":"https://api.github.com/repos/chihaya/chihaya","forks_url":"https://api.github.com/repos/chihaya/chihaya/forks","keys_url":"https://api.github.com/repos/chihaya/chihaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chihaya/chihaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chihaya/chihaya/teams","hooks_url":"https://api.github.com/repos/chihaya/chihaya/hooks","issue_events_url":"https://api.github.com/repos/chihaya/chihaya/issues/events{/number}","events_url":"https://api.github.com/repos/chihaya/chihaya/events","assignees_url":"https://api.github.com/repos/chihaya/chihaya/assignees{/user}","branches_url":"https://api.github.com/repos/chihaya/chihaya/branches{/branch}","tags_url":"https://api.github.com/repos/chihaya/chihaya/tags","blobs_url":"https://api.github.com/repos/chihaya/chihaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chihaya/chihaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chihaya/chihaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/chihaya/chihaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chihaya/chihaya/statuses/{sha}","languages_url":"https://api.github.com/repos/chihaya/chihaya/languages","stargazers_url":"https://api.github.com/repos/chihaya/chihaya/stargazers","contributors_url":"https://api.github.com/repos/chihaya/chihaya/contributors","subscribers_url":"https://api.github.com/repos/chihaya/chihaya/subscribers","subscription_url":"https://api.github.com/repos/chihaya/chihaya/subscription","commits_url":"https://api.github.com/repos/chihaya/chihaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/chihaya/chihaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/chihaya/chihaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/chihaya/chihaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/chihaya/chihaya/contents/{+path}","compare_url":"https://api.github.com/repos/chihaya/chihaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chihaya/chihaya/merges","archive_url":"https://api.github.com/repos/chihaya/chihaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chihaya/chihaya/downloads","issues_url":"https://api.github.com/repos/chihaya/chihaya/issues{/number}","pulls_url":"https://api.github.com/repos/chihaya/chihaya/pulls{/number}","milestones_url":"https://api.github.com/repos/chihaya/chihaya/milestones{/number}","notifications_url":"https://api.github.com/repos/chihaya/chihaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chihaya/chihaya/labels{/name}","releases_url":"https://api.github.com/repos/chihaya/chihaya/releases{/id}","deployments_url":"https://api.github.com/repos/chihaya/chihaya/deployments","created_at":"2013-01-01T21:08:47Z","updated_at":"2016-03-29T19:28:15Z","pushed_at":"2016-04-01T18:12:20Z","git_url":"git://github.com/chihaya/chihaya.git","ssh_url":"git@github.com:chihaya/chihaya.git","clone_url":"https://github.com/chihaya/chihaya.git","svn_url":"https://github.com/chihaya/chihaya","homepage":"","size":5990,"stargazers_count":356,"watchers_count":356,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":32,"forks":42,"open_issues":32,"watchers":356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/147"},"html":{"href":"https://github.com/chihaya/chihaya/pull/147"},"issue":{"href":"https://api.github.com/repos/chihaya/chihaya/issues/147"},"comments":{"href":"https://api.github.com/repos/chihaya/chihaya/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chihaya/chihaya/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/chihaya/chihaya/statuses/bb29d1571c3899b9f33a6a501723239d31698e1c"}}}}