{"action":"created","comment":{"url":"https://api.github.com/repos/RealImage/chihaya/pulls/comments/93750826","pull_request_review_id":14285008,"id":93750826,"diff_hunk":"@@ -0,0 +1,70 @@\n+package redistore\n+\n+import (\n+\t\"encoding/binary\"\n+\t\"fmt\"\n+\t\"net\"\n+\t\"time\"\n+\n+\t\"github.com/chihaya/chihaya/bittorrent\"\n+\t\"github.com/garyburd/redigo/redis\"\n+)\n+\n+func decodePeerKey(pk string) bittorrent.Peer {\n+\treturn bittorrent.Peer{\n+\t\tID:   bittorrent.PeerIDFromString(string(pk[:20])),\n+\t\tPort: binary.BigEndian.Uint16([]byte(pk[20:22])),\n+\t\tIP:   net.IP(pk[22:]),\n+\t}\n+}\n+\n+func addAndCleanPeer(s *peerStore, infoHash bittorrent.InfoHash, peerType string, pk serializedPeer) error {","path":"storage/redistore/peer_crud.go","position":21,"original_position":21,"commit_id":"0da494cbb61f0bbc517f949ef7d3aabd2ce8f02b","original_commit_id":"0da494cbb61f0bbc517f949ef7d3aabd2ce8f02b","user":{"login":"sudsred","id":12325664,"avatar_url":"https://avatars.githubusercontent.com/u/12325664?v=3","gravatar_id":"","url":"https://api.github.com/users/sudsred","html_url":"https://github.com/sudsred","followers_url":"https://api.github.com/users/sudsred/followers","following_url":"https://api.github.com/users/sudsred/following{/other_user}","gists_url":"https://api.github.com/users/sudsred/gists{/gist_id}","starred_url":"https://api.github.com/users/sudsred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudsred/subscriptions","organizations_url":"https://api.github.com/users/sudsred/orgs","repos_url":"https://api.github.com/users/sudsred/repos","events_url":"https://api.github.com/users/sudsred/events{/privacy}","received_events_url":"https://api.github.com/users/sudsred/received_events","type":"User","site_admin":false},"body":"Absolutely. This is a naming issue I didnt fix. ","created_at":"2016-12-23T10:35:25Z","updated_at":"2016-12-23T10:35:25Z","html_url":"https://github.com/RealImage/chihaya/pull/1#discussion_r93750826","pull_request_url":"https://api.github.com/repos/RealImage/chihaya/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/comments/93750826"},"html":{"href":"https://github.com/RealImage/chihaya/pull/1#discussion_r93750826"},"pull_request":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/RealImage/chihaya/pulls/1","id":99209740,"html_url":"https://github.com/RealImage/chihaya/pull/1","diff_url":"https://github.com/RealImage/chihaya/pull/1.diff","patch_url":"https://github.com/RealImage/chihaya/pull/1.patch","issue_url":"https://api.github.com/repos/RealImage/chihaya/issues/1","number":1,"state":"open","locked":false,"title":"Redistore","user":{"login":"sudsred","id":12325664,"avatar_url":"https://avatars.githubusercontent.com/u/12325664?v=3","gravatar_id":"","url":"https://api.github.com/users/sudsred","html_url":"https://github.com/sudsred","followers_url":"https://api.github.com/users/sudsred/followers","following_url":"https://api.github.com/users/sudsred/following{/other_user}","gists_url":"https://api.github.com/users/sudsred/gists{/gist_id}","starred_url":"https://api.github.com/users/sudsred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudsred/subscriptions","organizations_url":"https://api.github.com/users/sudsred/orgs","repos_url":"https://api.github.com/users/sudsred/repos","events_url":"https://api.github.com/users/sudsred/events{/privacy}","received_events_url":"https://api.github.com/users/sudsred/received_events","type":"User","site_admin":false},"body":"## What this PR does\r\nAdds a redis storage functionality\r\n\r\n## Dependencies\r\ngithub.com/garyburd/redigo\r\ngithub.com/rafaelgusto/redigomock\r\n\r\n## Additional details\r\nAdded a redistore method as an alternate storage option\r\nmodified config and yaml format a bit to pick up storage based on definition","created_at":"2016-12-23T07:14:27Z","updated_at":"2016-12-23T10:35:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"sivachandran","id":292921,"avatar_url":"https://avatars.githubusercontent.com/u/292921?v=3","gravatar_id":"","url":"https://api.github.com/users/sivachandran","html_url":"https://github.com/sivachandran","followers_url":"https://api.github.com/users/sivachandran/followers","following_url":"https://api.github.com/users/sivachandran/following{/other_user}","gists_url":"https://api.github.com/users/sivachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/sivachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivachandran/subscriptions","organizations_url":"https://api.github.com/users/sivachandran/orgs","repos_url":"https://api.github.com/users/sivachandran/repos","events_url":"https://api.github.com/users/sivachandran/events{/privacy}","received_events_url":"https://api.github.com/users/sivachandran/received_events","type":"User","site_admin":false},"assignees":[{"login":"sivachandran","id":292921,"avatar_url":"https://avatars.githubusercontent.com/u/292921?v=3","gravatar_id":"","url":"https://api.github.com/users/sivachandran","html_url":"https://github.com/sivachandran","followers_url":"https://api.github.com/users/sivachandran/followers","following_url":"https://api.github.com/users/sivachandran/following{/other_user}","gists_url":"https://api.github.com/users/sivachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/sivachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivachandran/subscriptions","organizations_url":"https://api.github.com/users/sivachandran/orgs","repos_url":"https://api.github.com/users/sivachandran/repos","events_url":"https://api.github.com/users/sivachandran/events{/privacy}","received_events_url":"https://api.github.com/users/sivachandran/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/RealImage/chihaya/pulls/1/commits","review_comments_url":"https://api.github.com/repos/RealImage/chihaya/pulls/1/comments","review_comment_url":"https://api.github.com/repos/RealImage/chihaya/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RealImage/chihaya/issues/1/comments","statuses_url":"https://api.github.com/repos/RealImage/chihaya/statuses/0da494cbb61f0bbc517f949ef7d3aabd2ce8f02b","head":{"label":"RealImage:redistore","ref":"redistore","sha":"0da494cbb61f0bbc517f949ef7d3aabd2ce8f02b","user":{"login":"RealImage","id":3600929,"avatar_url":"https://avatars.githubusercontent.com/u/3600929?v=3","gravatar_id":"","url":"https://api.github.com/users/RealImage","html_url":"https://github.com/RealImage","followers_url":"https://api.github.com/users/RealImage/followers","following_url":"https://api.github.com/users/RealImage/following{/other_user}","gists_url":"https://api.github.com/users/RealImage/gists{/gist_id}","starred_url":"https://api.github.com/users/RealImage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealImage/subscriptions","organizations_url":"https://api.github.com/users/RealImage/orgs","repos_url":"https://api.github.com/users/RealImage/repos","events_url":"https://api.github.com/users/RealImage/events{/privacy}","received_events_url":"https://api.github.com/users/RealImage/received_events","type":"Organization","site_admin":false},"repo":{"id":71867437,"name":"chihaya","full_name":"RealImage/chihaya","owner":{"login":"RealImage","id":3600929,"avatar_url":"https://avatars.githubusercontent.com/u/3600929?v=3","gravatar_id":"","url":"https://api.github.com/users/RealImage","html_url":"https://github.com/RealImage","followers_url":"https://api.github.com/users/RealImage/followers","following_url":"https://api.github.com/users/RealImage/following{/other_user}","gists_url":"https://api.github.com/users/RealImage/gists{/gist_id}","starred_url":"https://api.github.com/users/RealImage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealImage/subscriptions","organizations_url":"https://api.github.com/users/RealImage/orgs","repos_url":"https://api.github.com/users/RealImage/repos","events_url":"https://api.github.com/users/RealImage/events{/privacy}","received_events_url":"https://api.github.com/users/RealImage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RealImage/chihaya","description":"A customizible, multi-protocol BitTorrent Tracker","fork":true,"url":"https://api.github.com/repos/RealImage/chihaya","forks_url":"https://api.github.com/repos/RealImage/chihaya/forks","keys_url":"https://api.github.com/repos/RealImage/chihaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RealImage/chihaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RealImage/chihaya/teams","hooks_url":"https://api.github.com/repos/RealImage/chihaya/hooks","issue_events_url":"https://api.github.com/repos/RealImage/chihaya/issues/events{/number}","events_url":"https://api.github.com/repos/RealImage/chihaya/events","assignees_url":"https://api.github.com/repos/RealImage/chihaya/assignees{/user}","branches_url":"https://api.github.com/repos/RealImage/chihaya/branches{/branch}","tags_url":"https://api.github.com/repos/RealImage/chihaya/tags","blobs_url":"https://api.github.com/repos/RealImage/chihaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RealImage/chihaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RealImage/chihaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/RealImage/chihaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RealImage/chihaya/statuses/{sha}","languages_url":"https://api.github.com/repos/RealImage/chihaya/languages","stargazers_url":"https://api.github.com/repos/RealImage/chihaya/stargazers","contributors_url":"https://api.github.com/repos/RealImage/chihaya/contributors","subscribers_url":"https://api.github.com/repos/RealImage/chihaya/subscribers","subscription_url":"https://api.github.com/repos/RealImage/chihaya/subscription","commits_url":"https://api.github.com/repos/RealImage/chihaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/RealImage/chihaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/RealImage/chihaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/RealImage/chihaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/RealImage/chihaya/contents/{+path}","compare_url":"https://api.github.com/repos/RealImage/chihaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RealImage/chihaya/merges","archive_url":"https://api.github.com/repos/RealImage/chihaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RealImage/chihaya/downloads","issues_url":"https://api.github.com/repos/RealImage/chihaya/issues{/number}","pulls_url":"https://api.github.com/repos/RealImage/chihaya/pulls{/number}","milestones_url":"https://api.github.com/repos/RealImage/chihaya/milestones{/number}","notifications_url":"https://api.github.com/repos/RealImage/chihaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RealImage/chihaya/labels{/name}","releases_url":"https://api.github.com/repos/RealImage/chihaya/releases{/id}","deployments_url":"https://api.github.com/repos/RealImage/chihaya/deployments","created_at":"2016-10-25T06:43:29Z","updated_at":"2016-10-25T06:43:30Z","pushed_at":"2016-12-23T07:14:28Z","git_url":"git://github.com/RealImage/chihaya.git","ssh_url":"git@github.com:RealImage/chihaya.git","clone_url":"https://github.com/RealImage/chihaya.git","svn_url":"https://github.com/RealImage/chihaya","homepage":"","size":3052,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RealImage:master","ref":"master","sha":"f4dcf1c3fe47d8aabeba1ab7ead51f7c0cf34693","user":{"login":"RealImage","id":3600929,"avatar_url":"https://avatars.githubusercontent.com/u/3600929?v=3","gravatar_id":"","url":"https://api.github.com/users/RealImage","html_url":"https://github.com/RealImage","followers_url":"https://api.github.com/users/RealImage/followers","following_url":"https://api.github.com/users/RealImage/following{/other_user}","gists_url":"https://api.github.com/users/RealImage/gists{/gist_id}","starred_url":"https://api.github.com/users/RealImage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealImage/subscriptions","organizations_url":"https://api.github.com/users/RealImage/orgs","repos_url":"https://api.github.com/users/RealImage/repos","events_url":"https://api.github.com/users/RealImage/events{/privacy}","received_events_url":"https://api.github.com/users/RealImage/received_events","type":"Organization","site_admin":false},"repo":{"id":71867437,"name":"chihaya","full_name":"RealImage/chihaya","owner":{"login":"RealImage","id":3600929,"avatar_url":"https://avatars.githubusercontent.com/u/3600929?v=3","gravatar_id":"","url":"https://api.github.com/users/RealImage","html_url":"https://github.com/RealImage","followers_url":"https://api.github.com/users/RealImage/followers","following_url":"https://api.github.com/users/RealImage/following{/other_user}","gists_url":"https://api.github.com/users/RealImage/gists{/gist_id}","starred_url":"https://api.github.com/users/RealImage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealImage/subscriptions","organizations_url":"https://api.github.com/users/RealImage/orgs","repos_url":"https://api.github.com/users/RealImage/repos","events_url":"https://api.github.com/users/RealImage/events{/privacy}","received_events_url":"https://api.github.com/users/RealImage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RealImage/chihaya","description":"A customizible, multi-protocol BitTorrent Tracker","fork":true,"url":"https://api.github.com/repos/RealImage/chihaya","forks_url":"https://api.github.com/repos/RealImage/chihaya/forks","keys_url":"https://api.github.com/repos/RealImage/chihaya/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RealImage/chihaya/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RealImage/chihaya/teams","hooks_url":"https://api.github.com/repos/RealImage/chihaya/hooks","issue_events_url":"https://api.github.com/repos/RealImage/chihaya/issues/events{/number}","events_url":"https://api.github.com/repos/RealImage/chihaya/events","assignees_url":"https://api.github.com/repos/RealImage/chihaya/assignees{/user}","branches_url":"https://api.github.com/repos/RealImage/chihaya/branches{/branch}","tags_url":"https://api.github.com/repos/RealImage/chihaya/tags","blobs_url":"https://api.github.com/repos/RealImage/chihaya/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RealImage/chihaya/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RealImage/chihaya/git/refs{/sha}","trees_url":"https://api.github.com/repos/RealImage/chihaya/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RealImage/chihaya/statuses/{sha}","languages_url":"https://api.github.com/repos/RealImage/chihaya/languages","stargazers_url":"https://api.github.com/repos/RealImage/chihaya/stargazers","contributors_url":"https://api.github.com/repos/RealImage/chihaya/contributors","subscribers_url":"https://api.github.com/repos/RealImage/chihaya/subscribers","subscription_url":"https://api.github.com/repos/RealImage/chihaya/subscription","commits_url":"https://api.github.com/repos/RealImage/chihaya/commits{/sha}","git_commits_url":"https://api.github.com/repos/RealImage/chihaya/git/commits{/sha}","comments_url":"https://api.github.com/repos/RealImage/chihaya/comments{/number}","issue_comment_url":"https://api.github.com/repos/RealImage/chihaya/issues/comments{/number}","contents_url":"https://api.github.com/repos/RealImage/chihaya/contents/{+path}","compare_url":"https://api.github.com/repos/RealImage/chihaya/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RealImage/chihaya/merges","archive_url":"https://api.github.com/repos/RealImage/chihaya/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RealImage/chihaya/downloads","issues_url":"https://api.github.com/repos/RealImage/chihaya/issues{/number}","pulls_url":"https://api.github.com/repos/RealImage/chihaya/pulls{/number}","milestones_url":"https://api.github.com/repos/RealImage/chihaya/milestones{/number}","notifications_url":"https://api.github.com/repos/RealImage/chihaya/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RealImage/chihaya/labels{/name}","releases_url":"https://api.github.com/repos/RealImage/chihaya/releases{/id}","deployments_url":"https://api.github.com/repos/RealImage/chihaya/deployments","created_at":"2016-10-25T06:43:29Z","updated_at":"2016-10-25T06:43:30Z","pushed_at":"2016-12-23T07:14:28Z","git_url":"git://github.com/RealImage/chihaya.git","ssh_url":"git@github.com:RealImage/chihaya.git","clone_url":"https://github.com/RealImage/chihaya.git","svn_url":"https://github.com/RealImage/chihaya","homepage":"","size":3052,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/1"},"html":{"href":"https://github.com/RealImage/chihaya/pull/1"},"issue":{"href":"https://api.github.com/repos/RealImage/chihaya/issues/1"},"comments":{"href":"https://api.github.com/repos/RealImage/chihaya/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RealImage/chihaya/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/RealImage/chihaya/statuses/0da494cbb61f0bbc517f949ef7d3aabd2ce8f02b"}}}}
{"actor":{"display_login":"sudsred"}}