payload: {"action":"created","comment":{"url":"https://api.github.com/repos/renproject/aw/pulls/comments/309952499","pull_request_review_id":269947783,"id":309952499,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwOTk1MjQ5OQ==","diff_hunk":"@@ -61,15 +60,21 @@ func Default(options PeerOptions, receiver MessageReceiver, sender MessageSender\n \t\tpanic(fmt.Errorf(\"pre-condition violation: %v\", newErrInvalidPeerOptions(err)))\n \t}\n \n-\tif options.DHTStore == nil {\n-\t\toptions.DHTStore = kv.NewMemDB()\n+\tif options.Store == nil {\n+\t\toptions.Store = kv.NewMemDB()\n \t}\n \n-\tif options.BroadcasterStore == nil {\n-\t\toptions.BroadcasterStore = kv.NewMemDB()\n+\tdhtTable, err := options.Store.NewTable(\"DHT\", kv.GobCodec)\n+\tif err != nil {\n+\t\tpanic(fmt.Errorf(\"failed to initialize DHT table: %v\", err))\n+\t}\n+\n+\tbroadcasterTable, err := options.Store.NewTable(\"Broadcaster\", kv.GobCodec)","path":"peer.go","position":27,"original_position":27,"commit_id":"b443a8cd53e797239e915610e5bede2f1d44ff9b","original_commit_id":"b443a8cd53e797239e915610e5bede2f1d44ff9b","user":{"login":"loongy","id":6580801,"node_id":"MDQ6VXNlcjY1ODA4MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/6580801?v=4","gravatar_id":"","url":"https://api.github.com/users/loongy","html_url":"https://github.com/loongy","followers_url":"https://api.github.com/users/loongy/followers","following_url":"https://api.github.com/users/loongy/following{/other_user}","gists_url":"https://api.github.com/users/loongy/gists{/gist_id}","starred_url":"https://api.github.com/users/loongy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loongy/subscriptions","organizations_url":"https://api.github.com/users/loongy/orgs","repos_url":"https://api.github.com/users/loongy/repos","events_url":"https://api.github.com/users/loongy/events{/privacy}","received_events_url":"https://api.github.com/users/loongy/received_events","type":"User","site_admin":false},"body":"Don’t name tables based on who is using them. Name them based on the data inside. For example, instead of `“DHT”` use `”peerAddrs”`. Instead of `”Broadcaster”` use `”broadcastMessageHashes”`. ","created_at":"2019-08-02T01:22:55Z","updated_at":"2019-08-02T01:23:31Z","html_url":"https://github.com/renproject/aw/pull/2#discussion_r309952499","pull_request_url":"https://api.github.com/repos/renproject/aw/pulls/2","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/renproject/aw/pulls/comments/309952499"},"html":{"href":"https://github.com/renproject/aw/pull/2#discussion_r309952499"},"pull_request":{"href":"https://api.github.com/repos/renproject/aw/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/renproject/aw/pulls/2","id":303601814,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAzNjAxODE0","html_url":"https://github.com/renproject/aw/pull/2","diff_url":"https://github.com/renproject/aw/pull/2.diff","patch_url":"https://github.com/renproject/aw/pull/2.patch","issue_url":"https://api.github.com/repos/renproject/aw/issues/2","number":2,"state":"open","locked":false,"title":"Update AirWave to use new Keva DB","user":{"login":"divyakoshy","id":31115386,"node_id":"MDQ6VXNlcjMxMTE1Mzg2","avatar_url":"https://avatars1.githubusercontent.com/u/31115386?v=4","gravatar_id":"","url":"https://api.github.com/users/divyakoshy","html_url":"https://github.com/divyakoshy","followers_url":"https://api.github.com/users/divyakoshy/followers","following_url":"https://api.github.com/users/divyakoshy/following{/other_user}","gists_url":"https://api.github.com/users/divyakoshy/gists{/gist_id}","starred_url":"https://api.github.com/users/divyakoshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyakoshy/subscriptions","organizations_url":"https://api.github.com/users/divyakoshy/orgs","repos_url":"https://api.github.com/users/divyakoshy/repos","events_url":"https://api.github.com/users/divyakoshy/events{/privacy}","received_events_url":"https://api.github.com/users/divyakoshy/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-02T00:44:15Z","updated_at":"2019-08-02T01:23:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a2e24d210a7e254eaf7412e300315a4728c56f3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"susruth","id":14990139,"node_id":"MDQ6VXNlcjE0OTkwMTM5","avatar_url":"https://avatars3.githubusercontent.com/u/14990139?v=4","gravatar_id":"","url":"https://api.github.com/users/susruth","html_url":"https://github.com/susruth","followers_url":"https://api.github.com/users/susruth/followers","following_url":"https://api.github.com/users/susruth/following{/other_user}","gists_url":"https://api.github.com/users/susruth/gists{/gist_id}","starred_url":"https://api.github.com/users/susruth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susruth/subscriptions","organizations_url":"https://api.github.com/users/susruth/orgs","repos_url":"https://api.github.com/users/susruth/repos","events_url":"https://api.github.com/users/susruth/events{/privacy}","received_events_url":"https://api.github.com/users/susruth/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/renproject/aw/pulls/2/commits","review_comments_url":"https://api.github.com/repos/renproject/aw/pulls/2/comments","review_comment_url":"https://api.github.com/repos/renproject/aw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/renproject/aw/issues/2/comments","statuses_url":"https://api.github.com/repos/renproject/aw/statuses/b443a8cd53e797239e915610e5bede2f1d44ff9b","head":{"label":"renproject:feat/lrucaching","ref":"feat/lrucaching","sha":"b443a8cd53e797239e915610e5bede2f1d44ff9b","user":{"login":"renproject","id":44991428,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTkxNDI4","avatar_url":"https://avatars3.githubusercontent.com/u/44991428?v=4","gravatar_id":"","url":"https://api.github.com/users/renproject","html_url":"https://github.com/renproject","followers_url":"https://api.github.com/users/renproject/followers","following_url":"https://api.github.com/users/renproject/following{/other_user}","gists_url":"https://api.github.com/users/renproject/gists{/gist_id}","starred_url":"https://api.github.com/users/renproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renproject/subscriptions","organizations_url":"https://api.github.com/users/renproject/orgs","repos_url":"https://api.github.com/users/renproject/repos","events_url":"https://api.github.com/users/renproject/events{/privacy}","received_events_url":"https://api.github.com/users/renproject/received_events","type":"Organization","site_admin":false},"repo":{"id":195470844,"node_id":"MDEwOlJlcG9zaXRvcnkxOTU0NzA4NDQ=","name":"aw","full_name":"renproject/aw","private":false,"owner":{"login":"renproject","id":44991428,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTkxNDI4","avatar_url":"https://avatars3.githubusercontent.com/u/44991428?v=4","gravatar_id":"","url":"https://api.github.com/users/renproject","html_url":"https://github.com/renproject","followers_url":"https://api.github.com/users/renproject/followers","following_url":"https://api.github.com/users/renproject/following{/other_user}","gists_url":"https://api.github.com/users/renproject/gists{/gist_id}","starred_url":"https://api.github.com/users/renproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renproject/subscriptions","organizations_url":"https://api.github.com/users/renproject/orgs","repos_url":"https://api.github.com/users/renproject/repos","events_url":"https://api.github.com/users/renproject/events{/privacy}","received_events_url":"https://api.github.com/users/renproject/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/renproject/aw","description":"A flexible P2P networking library for upgradable distributed systems.","fork":false,"url":"https://api.github.com/repos/renproject/aw","forks_url":"https://api.github.com/repos/renproject/aw/forks","keys_url":"https://api.github.com/repos/renproject/aw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renproject/aw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renproject/aw/teams","hooks_url":"https://api.github.com/repos/renproject/aw/hooks","issue_events_url":"https://api.github.com/repos/renproject/aw/issues/events{/number}","events_url":"https://api.github.com/repos/renproject/aw/events","assignees_url":"https://api.github.com/repos/renproject/aw/assignees{/user}","branches_url":"https://api.github.com/repos/renproject/aw/branches{/branch}","tags_url":"https://api.github.com/repos/renproject/aw/tags","blobs_url":"https://api.github.com/repos/renproject/aw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renproject/aw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renproject/aw/git/refs{/sha}","trees_url":"https://api.github.com/repos/renproject/aw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renproject/aw/statuses/{sha}","languages_url":"https://api.github.com/repos/renproject/aw/languages","stargazers_url":"https://api.github.com/repos/renproject/aw/stargazers","contributors_url":"https://api.github.com/repos/renproject/aw/contributors","subscribers_url":"https://api.github.com/repos/renproject/aw/subscribers","subscription_url":"https://api.github.com/repos/renproject/aw/subscription","commits_url":"https://api.github.com/repos/renproject/aw/commits{/sha}","git_commits_url":"https://api.github.com/repos/renproject/aw/git/commits{/sha}","comments_url":"https://api.github.com/repos/renproject/aw/comments{/number}","issue_comment_url":"https://api.github.com/repos/renproject/aw/issues/comments{/number}","contents_url":"https://api.github.com/repos/renproject/aw/contents/{+path}","compare_url":"https://api.github.com/repos/renproject/aw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renproject/aw/merges","archive_url":"https://api.github.com/repos/renproject/aw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renproject/aw/downloads","issues_url":"https://api.github.com/repos/renproject/aw/issues{/number}","pulls_url":"https://api.github.com/repos/renproject/aw/pulls{/number}","milestones_url":"https://api.github.com/repos/renproject/aw/milestones{/number}","notifications_url":"https://api.github.com/repos/renproject/aw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renproject/aw/labels{/name}","releases_url":"https://api.github.com/repos/renproject/aw/releases{/id}","deployments_url":"https://api.github.com/repos/renproject/aw/deployments","created_at":"2019-07-05T21:50:22Z","updated_at":"2019-08-02T00:23:44Z","pushed_at":"2019-08-02T00:44:16Z","git_url":"git://github.com/renproject/aw.git","ssh_url":"git@github.com:renproject/aw.git","clone_url":"https://github.com/renproject/aw.git","svn_url":"https://github.com/renproject/aw","homepage":"","size":139,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"renproject:master","ref":"master","sha":"96b882bdbd22a7c0c13e9ac2511bd4112846191b","user":{"login":"renproject","id":44991428,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTkxNDI4","avatar_url":"https://avatars3.githubusercontent.com/u/44991428?v=4","gravatar_id":"","url":"https://api.github.com/users/renproject","html_url":"https://github.com/renproject","followers_url":"https://api.github.com/users/renproject/followers","following_url":"https://api.github.com/users/renproject/following{/other_user}","gists_url":"https://api.github.com/users/renproject/gists{/gist_id}","starred_url":"https://api.github.com/users/renproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renproject/subscriptions","organizations_url":"https://api.github.com/users/renproject/orgs","repos_url":"https://api.github.com/users/renproject/repos","events_url":"https://api.github.com/users/renproject/events{/privacy}","received_events_url":"https://api.github.com/users/renproject/received_events","type":"Organization","site_admin":false},"repo":{"id":195470844,"node_id":"MDEwOlJlcG9zaXRvcnkxOTU0NzA4NDQ=","name":"aw","full_name":"renproject/aw","private":false,"owner":{"login":"renproject","id":44991428,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTkxNDI4","avatar_url":"https://avatars3.githubusercontent.com/u/44991428?v=4","gravatar_id":"","url":"https://api.github.com/users/renproject","html_url":"https://github.com/renproject","followers_url":"https://api.github.com/users/renproject/followers","following_url":"https://api.github.com/users/renproject/following{/other_user}","gists_url":"https://api.github.com/users/renproject/gists{/gist_id}","starred_url":"https://api.github.com/users/renproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renproject/subscriptions","organizations_url":"https://api.github.com/users/renproject/orgs","repos_url":"https://api.github.com/users/renproject/repos","events_url":"https://api.github.com/users/renproject/events{/privacy}","received_events_url":"https://api.github.com/users/renproject/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/renproject/aw","description":"A flexible P2P networking library for upgradable distributed systems.","fork":false,"url":"https://api.github.com/repos/renproject/aw","forks_url":"https://api.github.com/repos/renproject/aw/forks","keys_url":"https://api.github.com/repos/renproject/aw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renproject/aw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renproject/aw/teams","hooks_url":"https://api.github.com/repos/renproject/aw/hooks","issue_events_url":"https://api.github.com/repos/renproject/aw/issues/events{/number}","events_url":"https://api.github.com/repos/renproject/aw/events","assignees_url":"https://api.github.com/repos/renproject/aw/assignees{/user}","branches_url":"https://api.github.com/repos/renproject/aw/branches{/branch}","tags_url":"https://api.github.com/repos/renproject/aw/tags","blobs_url":"https://api.github.com/repos/renproject/aw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renproject/aw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renproject/aw/git/refs{/sha}","trees_url":"https://api.github.com/repos/renproject/aw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renproject/aw/statuses/{sha}","languages_url":"https://api.github.com/repos/renproject/aw/languages","stargazers_url":"https://api.github.com/repos/renproject/aw/stargazers","contributors_url":"https://api.github.com/repos/renproject/aw/contributors","subscribers_url":"https://api.github.com/repos/renproject/aw/subscribers","subscription_url":"https://api.github.com/repos/renproject/aw/subscription","commits_url":"https://api.github.com/repos/renproject/aw/commits{/sha}","git_commits_url":"https://api.github.com/repos/renproject/aw/git/commits{/sha}","comments_url":"https://api.github.com/repos/renproject/aw/comments{/number}","issue_comment_url":"https://api.github.com/repos/renproject/aw/issues/comments{/number}","contents_url":"https://api.github.com/repos/renproject/aw/contents/{+path}","compare_url":"https://api.github.com/repos/renproject/aw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renproject/aw/merges","archive_url":"https://api.github.com/repos/renproject/aw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renproject/aw/downloads","issues_url":"https://api.github.com/repos/renproject/aw/issues{/number}","pulls_url":"https://api.github.com/repos/renproject/aw/pulls{/number}","milestones_url":"https://api.github.com/repos/renproject/aw/milestones{/number}","notifications_url":"https://api.github.com/repos/renproject/aw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renproject/aw/labels{/name}","releases_url":"https://api.github.com/repos/renproject/aw/releases{/id}","deployments_url":"https://api.github.com/repos/renproject/aw/deployments","created_at":"2019-07-05T21:50:22Z","updated_at":"2019-08-02T00:23:44Z","pushed_at":"2019-08-02T00:44:16Z","git_url":"git://github.com/renproject/aw.git","ssh_url":"git@github.com:renproject/aw.git","clone_url":"https://github.com/renproject/aw.git","svn_url":"https://github.com/renproject/aw","homepage":"","size":139,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/renproject/aw/pulls/2"},"html":{"href":"https://github.com/renproject/aw/pull/2"},"issue":{"href":"https://api.github.com/repos/renproject/aw/issues/2"},"comments":{"href":"https://api.github.com/repos/renproject/aw/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/renproject/aw/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/renproject/aw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/renproject/aw/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/renproject/aw/statuses/b443a8cd53e797239e915610e5bede2f1d44ff9b"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"loongy"}}