{"action":"created","comment":{"url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/comments/227734318","pull_request_review_id":167822800,"id":227734318,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzczNDMxOA==","diff_hunk":"@@ -0,0 +1,185 @@\n+package relay_test\n+\n+import (\n+\t\"context\"\n+\t\"net\"\n+\t\"sync\"\n+\t\"testing\"\n+\t\"time\"\n+\n+\tlibp2p \"github.com/libp2p/go-libp2p\"\n+\trelay \"github.com/libp2p/go-libp2p/p2p/host/relay\"\n+\n+\tggio \"github.com/gogo/protobuf/io\"\n+\tcid \"github.com/ipfs/go-cid\"\n+\tautonat \"github.com/libp2p/go-libp2p-autonat\"\n+\tautonatpb \"github.com/libp2p/go-libp2p-autonat/pb\"\n+\tcircuit \"github.com/libp2p/go-libp2p-circuit\"\n+\thost \"github.com/libp2p/go-libp2p-host\"\n+\tinet \"github.com/libp2p/go-libp2p-net\"\n+\tpeer \"github.com/libp2p/go-libp2p-peer\"\n+\tpstore \"github.com/libp2p/go-libp2p-peerstore\"\n+\trouting \"github.com/libp2p/go-libp2p-routing\"\n+\tma \"github.com/multiformats/go-multiaddr\"\n+\tmanet \"github.com/multiformats/go-multiaddr-net\"\n+)\n+\n+// test specific parameters\n+func init() {\n+\tautonat.AutoNATIdentifyDelay = 10 * time.Millisecond\n+\tautonat.AutoNATBootDelay = 1 * time.Second\n+\trelay.BootDelay = 1 * time.Second\n+\tmanet.Private4 = []*net.IPNet{}\n+}\n+\n+// mock routing\n+type mockRoutingTable struct {\n+\tmx        sync.Mutex\n+\tproviders map[string]map[peer.ID]pstore.PeerInfo\n+}\n+\n+type mockRouting struct {\n+\th   host.Host\n+\ttab *mockRoutingTable\n+}\n+\n+func newMockRoutingTable() *mockRoutingTable {\n+\treturn &mockRoutingTable{providers: make(map[string]map[peer.ID]pstore.PeerInfo)}\n+}\n+\n+func newMockRouting(h host.Host, tab *mockRoutingTable) *mockRouting {\n+\treturn &mockRouting{h: h, tab: tab}\n+}\n+\n+func (m *mockRouting) FindPeer(ctx context.Context, p peer.ID) (pstore.PeerInfo, error) {\n+\treturn pstore.PeerInfo{}, routing.ErrNotFound\n+}\n+\n+func (m *mockRouting) Provide(ctx context.Context, cid cid.Cid, bcast bool) error {\n+\tm.tab.mx.Lock()\n+\tdefer m.tab.mx.Unlock()\n+\n+\tpmap, ok := m.tab.providers[cid.String()]\n+\tif !ok {\n+\t\tpmap = make(map[peer.ID]pstore.PeerInfo)\n+\t\tm.tab.providers[cid.String()] = pmap\n+\t}\n+\n+\tpmap[m.h.ID()] = pstore.PeerInfo{ID: m.h.ID(), Addrs: m.h.Addrs()}\n+\n+\treturn nil\n+}\n+\n+func (m *mockRouting) FindProvidersAsync(ctx context.Context, cid cid.Cid, limit int) <-chan pstore.PeerInfo {\n+\tch := make(chan pstore.PeerInfo)\n+\tgo func() {\n+\t\tdefer close(ch)\n+\t\tm.tab.mx.Lock()\n+\t\tdefer m.tab.mx.Unlock()\n+\n+\t\tpmap, ok := m.tab.providers[cid.String()]\n+\t\tif !ok {\n+\t\t\treturn\n+\t\t}\n+\n+\t\tfor _, pi := range pmap {\n+\t\t\tselect {\n+\t\t\tcase ch <- pi:\n+\t\t\tcase <-ctx.Done():\n+\t\t\t\treturn\n+\t\t\t}\n+\t\t}\n+\t}()\n+\n+\treturn ch\n+}\n+\n+// mock autonat\n+func makeAutoNATServicePrivate(ctx context.Context, t *testing.T) host.Host {\n+\th, err := libp2p.New(ctx)\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\th.SetStreamHandler(autonat.AutoNATProto, sayAutoNATPrivate)\n+\treturn h\n+}\n+\n+func sayAutoNATPrivate(s inet.Stream) {\n+\tdefer s.Close()\n+\tw := ggio.NewDelimitedWriter(s)\n+\tres := autonatpb.Message{\n+\t\tType:         autonatpb.Message_DIAL_RESPONSE.Enum(),\n+\t\tDialResponse: newDialResponseError(autonatpb.Message_E_DIAL_ERROR, \"no dialable addresses\"),\n+\t}\n+\tw.WriteMsg(&res)\n+}\n+\n+func newDialResponseError(status autonatpb.Message_ResponseStatus, text string) *autonatpb.Message_DialResponse {\n+\tdr := new(autonatpb.Message_DialResponse)\n+\tdr.Status = status.Enum()\n+\tdr.StatusText = &text\n+\treturn dr\n+}\n+\n+// connector\n+func connect(t *testing.T, a, b host.Host) {\n+\tpinfo := pstore.PeerInfo{ID: a.ID(), Addrs: a.Addrs()}\n+\terr := b.Connect(context.Background(), pinfo)\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+}\n+\n+// and the actual test!\n+func TestAutoRelay(t *testing.T) {\n+\tctx, cancel := context.WithCancel(context.Background())\n+\tdefer cancel()\n+\n+\tmtab := newMockRoutingTable()\n+\tmakeRouting := func(h host.Host) (libp2p.BasicRouting, error) {\n+\t\tmr := newMockRouting(h, mtab)\n+\t\treturn mr, nil\n+\t}\n+\n+\th1 := makeAutoNATServicePrivate(ctx, t)\n+\t_, err := libp2p.New(ctx, libp2p.EnableRelay(circuit.OptHop), libp2p.Routing(makeRouting))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\th3, err := libp2p.New(ctx, libp2p.EnableRelay(), libp2p.Routing(makeRouting))\n+\tif err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\th4, err := libp2p.New(ctx, libp2p.EnableRelay())\n+\n+\tconnect(t, h1, h3)\n+\ttime.Sleep(3 * time.Second)\n+\n+\t// verify that we advertise relay addrs\n+\thaveRelay := false\n+\tfor _, addr := range h3.Addrs() {\n+\t\t_, err := addr.ValueForProtocol(circuit.P_CIRCUIT)","path":"p2p/host/relay/autorelay_test.go","position":161,"original_position":161,"commit_id":"16fd36c87d1bdaf978a3a6d14137646981f71a3f","original_commit_id":"16fd36c87d1bdaf978a3a6d14137646981f71a3f","user":{"login":"raulk","id":1101242,"node_id":"MDQ6VXNlcjExMDEyNDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1101242?v=4","gravatar_id":"","url":"https://api.github.com/users/raulk","html_url":"https://github.com/raulk","followers_url":"https://api.github.com/users/raulk/followers","following_url":"https://api.github.com/users/raulk/following{/other_user}","gists_url":"https://api.github.com/users/raulk/gists{/gist_id}","starred_url":"https://api.github.com/users/raulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulk/subscriptions","organizations_url":"https://api.github.com/users/raulk/orgs","repos_url":"https://api.github.com/users/raulk/repos","events_url":"https://api.github.com/users/raulk/events{/privacy}","received_events_url":"https://api.github.com/users/raulk/received_events","type":"User","site_admin":false},"body":"Let's assert the entire multiaddr, not only that a component exists.","created_at":"2018-10-24T10:37:47Z","updated_at":"2018-10-24T10:38:13Z","html_url":"https://github.com/libp2p/go-libp2p/pull/454#discussion_r227734318","pull_request_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/comments/227734318"},"html":{"href":"https://github.com/libp2p/go-libp2p/pull/454#discussion_r227734318"},"pull_request":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454"}}},"pull_request":{"url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454","id":223619685,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNjE5Njg1","html_url":"https://github.com/libp2p/go-libp2p/pull/454","diff_url":"https://github.com/libp2p/go-libp2p/pull/454.diff","patch_url":"https://github.com/libp2p/go-libp2p/pull/454.patch","issue_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/454","number":454,"state":"open","locked":false,"title":"autorelay","user":{"login":"vyzo","id":36426,"node_id":"MDQ6VXNlcjM2NDI2","avatar_url":"https://avatars0.githubusercontent.com/u/36426?v=4","gravatar_id":"","url":"https://api.github.com/users/vyzo","html_url":"https://github.com/vyzo","followers_url":"https://api.github.com/users/vyzo/followers","following_url":"https://api.github.com/users/vyzo/following{/other_user}","gists_url":"https://api.github.com/users/vyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/vyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyzo/subscriptions","organizations_url":"https://api.github.com/users/vyzo/orgs","repos_url":"https://api.github.com/users/vyzo/repos","events_url":"https://api.github.com/users/vyzo/events{/privacy}","received_events_url":"https://api.github.com/users/vyzo/received_events","type":"User","site_admin":false},"body":"Implements autorelay; Closes #444.\r\n\r\nDepends on:\r\n- [X] https://github.com/libp2p/go-libp2p-discovery/pull/1\r\n- [X] https://github.com/libp2p/go-libp2p-autonat/pull/2\r\n- [X] https://github.com/multiformats/go-multiaddr-net/pull/46\r\n\r\nTBD:\r\n- [X] gx import discovery\r\n- [X] gx import autonat\r\n- [ ] gx update multiaddr-net\r\n- [X] Update `New` constructor to automatically create relay/autorelay/routed hosts\r\n- [X] tests!","created_at":"2018-10-17T14:09:56Z","updated_at":"2018-10-24T10:38:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"120988ca8bd860499f40f64eb084b6b30ebbd83e","assignee":{"login":"vyzo","id":36426,"node_id":"MDQ6VXNlcjM2NDI2","avatar_url":"https://avatars0.githubusercontent.com/u/36426?v=4","gravatar_id":"","url":"https://api.github.com/users/vyzo","html_url":"https://github.com/vyzo","followers_url":"https://api.github.com/users/vyzo/followers","following_url":"https://api.github.com/users/vyzo/following{/other_user}","gists_url":"https://api.github.com/users/vyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/vyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyzo/subscriptions","organizations_url":"https://api.github.com/users/vyzo/orgs","repos_url":"https://api.github.com/users/vyzo/repos","events_url":"https://api.github.com/users/vyzo/events{/privacy}","received_events_url":"https://api.github.com/users/vyzo/received_events","type":"User","site_admin":false},"assignees":[{"login":"vyzo","id":36426,"node_id":"MDQ6VXNlcjM2NDI2","avatar_url":"https://avatars0.githubusercontent.com/u/36426?v=4","gravatar_id":"","url":"https://api.github.com/users/vyzo","html_url":"https://github.com/vyzo","followers_url":"https://api.github.com/users/vyzo/followers","following_url":"https://api.github.com/users/vyzo/following{/other_user}","gists_url":"https://api.github.com/users/vyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/vyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyzo/subscriptions","organizations_url":"https://api.github.com/users/vyzo/orgs","repos_url":"https://api.github.com/users/vyzo/repos","events_url":"https://api.github.com/users/vyzo/events{/privacy}","received_events_url":"https://api.github.com/users/vyzo/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"Stebalien","id":310393,"node_id":"MDQ6VXNlcjMxMDM5Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/310393?v=4","gravatar_id":"","url":"https://api.github.com/users/Stebalien","html_url":"https://github.com/Stebalien","followers_url":"https://api.github.com/users/Stebalien/followers","following_url":"https://api.github.com/users/Stebalien/following{/other_user}","gists_url":"https://api.github.com/users/Stebalien/gists{/gist_id}","starred_url":"https://api.github.com/users/Stebalien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stebalien/subscriptions","organizations_url":"https://api.github.com/users/Stebalien/orgs","repos_url":"https://api.github.com/users/Stebalien/repos","events_url":"https://api.github.com/users/Stebalien/events{/privacy}","received_events_url":"https://api.github.com/users/Stebalien/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":717912877,"node_id":"MDU6TGFiZWw3MTc5MTI4Nzc=","url":"https://api.github.com/repos/libp2p/go-libp2p/labels/P1%20-%20High","name":"P1 - High","color":"d93f0b","default":false},{"id":911069848,"node_id":"MDU6TGFiZWw5MTEwNjk4NDg=","url":"https://api.github.com/repos/libp2p/go-libp2p/labels/blocked","name":"blocked","color":"b52ed1","default":false},{"id":419430610,"node_id":"MDU6TGFiZWw0MTk0MzA2MTA=","url":"https://api.github.com/repos/libp2p/go-libp2p/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454/commits","review_comments_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454/comments","review_comment_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/454/comments","statuses_url":"https://api.github.com/repos/libp2p/go-libp2p/statuses/16fd36c87d1bdaf978a3a6d14137646981f71a3f","head":{"label":"libp2p:feat/autorelay","ref":"feat/autorelay","sha":"16fd36c87d1bdaf978a3a6d14137646981f71a3f","user":{"login":"libp2p","id":14838238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODM4MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/14838238?v=4","gravatar_id":"","url":"https://api.github.com/users/libp2p","html_url":"https://github.com/libp2p","followers_url":"https://api.github.com/users/libp2p/followers","following_url":"https://api.github.com/users/libp2p/following{/other_user}","gists_url":"https://api.github.com/users/libp2p/gists{/gist_id}","starred_url":"https://api.github.com/users/libp2p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libp2p/subscriptions","organizations_url":"https://api.github.com/users/libp2p/orgs","repos_url":"https://api.github.com/users/libp2p/repos","events_url":"https://api.github.com/users/libp2p/events{/privacy}","received_events_url":"https://api.github.com/users/libp2p/received_events","type":"Organization","site_admin":false},"repo":{"id":43465675,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ2NTY3NQ==","name":"go-libp2p","full_name":"libp2p/go-libp2p","private":false,"owner":{"login":"libp2p","id":14838238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODM4MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/14838238?v=4","gravatar_id":"","url":"https://api.github.com/users/libp2p","html_url":"https://github.com/libp2p","followers_url":"https://api.github.com/users/libp2p/followers","following_url":"https://api.github.com/users/libp2p/following{/other_user}","gists_url":"https://api.github.com/users/libp2p/gists{/gist_id}","starred_url":"https://api.github.com/users/libp2p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libp2p/subscriptions","organizations_url":"https://api.github.com/users/libp2p/orgs","repos_url":"https://api.github.com/users/libp2p/repos","events_url":"https://api.github.com/users/libp2p/events{/privacy}","received_events_url":"https://api.github.com/users/libp2p/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/libp2p/go-libp2p","description":"libp2p implementation in Go","fork":false,"url":"https://api.github.com/repos/libp2p/go-libp2p","forks_url":"https://api.github.com/repos/libp2p/go-libp2p/forks","keys_url":"https://api.github.com/repos/libp2p/go-libp2p/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libp2p/go-libp2p/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libp2p/go-libp2p/teams","hooks_url":"https://api.github.com/repos/libp2p/go-libp2p/hooks","issue_events_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/events{/number}","events_url":"https://api.github.com/repos/libp2p/go-libp2p/events","assignees_url":"https://api.github.com/repos/libp2p/go-libp2p/assignees{/user}","branches_url":"https://api.github.com/repos/libp2p/go-libp2p/branches{/branch}","tags_url":"https://api.github.com/repos/libp2p/go-libp2p/tags","blobs_url":"https://api.github.com/repos/libp2p/go-libp2p/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libp2p/go-libp2p/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libp2p/go-libp2p/git/refs{/sha}","trees_url":"https://api.github.com/repos/libp2p/go-libp2p/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libp2p/go-libp2p/statuses/{sha}","languages_url":"https://api.github.com/repos/libp2p/go-libp2p/languages","stargazers_url":"https://api.github.com/repos/libp2p/go-libp2p/stargazers","contributors_url":"https://api.github.com/repos/libp2p/go-libp2p/contributors","subscribers_url":"https://api.github.com/repos/libp2p/go-libp2p/subscribers","subscription_url":"https://api.github.com/repos/libp2p/go-libp2p/subscription","commits_url":"https://api.github.com/repos/libp2p/go-libp2p/commits{/sha}","git_commits_url":"https://api.github.com/repos/libp2p/go-libp2p/git/commits{/sha}","comments_url":"https://api.github.com/repos/libp2p/go-libp2p/comments{/number}","issue_comment_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/comments{/number}","contents_url":"https://api.github.com/repos/libp2p/go-libp2p/contents/{+path}","compare_url":"https://api.github.com/repos/libp2p/go-libp2p/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libp2p/go-libp2p/merges","archive_url":"https://api.github.com/repos/libp2p/go-libp2p/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libp2p/go-libp2p/downloads","issues_url":"https://api.github.com/repos/libp2p/go-libp2p/issues{/number}","pulls_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls{/number}","milestones_url":"https://api.github.com/repos/libp2p/go-libp2p/milestones{/number}","notifications_url":"https://api.github.com/repos/libp2p/go-libp2p/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libp2p/go-libp2p/labels{/name}","releases_url":"https://api.github.com/repos/libp2p/go-libp2p/releases{/id}","deployments_url":"https://api.github.com/repos/libp2p/go-libp2p/deployments","created_at":"2015-09-30T23:24:32Z","updated_at":"2018-10-24T07:24:36Z","pushed_at":"2018-10-24T07:41:57Z","git_url":"git://github.com/libp2p/go-libp2p.git","ssh_url":"git@github.com:libp2p/go-libp2p.git","clone_url":"https://github.com/libp2p/go-libp2p.git","svn_url":"https://github.com/libp2p/go-libp2p","homepage":"","size":8268,"stargazers_count":1860,"watchers_count":1860,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":270,"mirror_url":null,"archived":false,"open_issues_count":109,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":270,"open_issues":109,"watchers":1860,"default_branch":"master"}},"base":{"label":"libp2p:master","ref":"master","sha":"ddd5604b1400d835706ae6fd9a8a02b413050c3d","user":{"login":"libp2p","id":14838238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODM4MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/14838238?v=4","gravatar_id":"","url":"https://api.github.com/users/libp2p","html_url":"https://github.com/libp2p","followers_url":"https://api.github.com/users/libp2p/followers","following_url":"https://api.github.com/users/libp2p/following{/other_user}","gists_url":"https://api.github.com/users/libp2p/gists{/gist_id}","starred_url":"https://api.github.com/users/libp2p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libp2p/subscriptions","organizations_url":"https://api.github.com/users/libp2p/orgs","repos_url":"https://api.github.com/users/libp2p/repos","events_url":"https://api.github.com/users/libp2p/events{/privacy}","received_events_url":"https://api.github.com/users/libp2p/received_events","type":"Organization","site_admin":false},"repo":{"id":43465675,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ2NTY3NQ==","name":"go-libp2p","full_name":"libp2p/go-libp2p","private":false,"owner":{"login":"libp2p","id":14838238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODM4MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/14838238?v=4","gravatar_id":"","url":"https://api.github.com/users/libp2p","html_url":"https://github.com/libp2p","followers_url":"https://api.github.com/users/libp2p/followers","following_url":"https://api.github.com/users/libp2p/following{/other_user}","gists_url":"https://api.github.com/users/libp2p/gists{/gist_id}","starred_url":"https://api.github.com/users/libp2p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libp2p/subscriptions","organizations_url":"https://api.github.com/users/libp2p/orgs","repos_url":"https://api.github.com/users/libp2p/repos","events_url":"https://api.github.com/users/libp2p/events{/privacy}","received_events_url":"https://api.github.com/users/libp2p/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/libp2p/go-libp2p","description":"libp2p implementation in Go","fork":false,"url":"https://api.github.com/repos/libp2p/go-libp2p","forks_url":"https://api.github.com/repos/libp2p/go-libp2p/forks","keys_url":"https://api.github.com/repos/libp2p/go-libp2p/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libp2p/go-libp2p/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libp2p/go-libp2p/teams","hooks_url":"https://api.github.com/repos/libp2p/go-libp2p/hooks","issue_events_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/events{/number}","events_url":"https://api.github.com/repos/libp2p/go-libp2p/events","assignees_url":"https://api.github.com/repos/libp2p/go-libp2p/assignees{/user}","branches_url":"https://api.github.com/repos/libp2p/go-libp2p/branches{/branch}","tags_url":"https://api.github.com/repos/libp2p/go-libp2p/tags","blobs_url":"https://api.github.com/repos/libp2p/go-libp2p/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libp2p/go-libp2p/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libp2p/go-libp2p/git/refs{/sha}","trees_url":"https://api.github.com/repos/libp2p/go-libp2p/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libp2p/go-libp2p/statuses/{sha}","languages_url":"https://api.github.com/repos/libp2p/go-libp2p/languages","stargazers_url":"https://api.github.com/repos/libp2p/go-libp2p/stargazers","contributors_url":"https://api.github.com/repos/libp2p/go-libp2p/contributors","subscribers_url":"https://api.github.com/repos/libp2p/go-libp2p/subscribers","subscription_url":"https://api.github.com/repos/libp2p/go-libp2p/subscription","commits_url":"https://api.github.com/repos/libp2p/go-libp2p/commits{/sha}","git_commits_url":"https://api.github.com/repos/libp2p/go-libp2p/git/commits{/sha}","comments_url":"https://api.github.com/repos/libp2p/go-libp2p/comments{/number}","issue_comment_url":"https://api.github.com/repos/libp2p/go-libp2p/issues/comments{/number}","contents_url":"https://api.github.com/repos/libp2p/go-libp2p/contents/{+path}","compare_url":"https://api.github.com/repos/libp2p/go-libp2p/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libp2p/go-libp2p/merges","archive_url":"https://api.github.com/repos/libp2p/go-libp2p/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libp2p/go-libp2p/downloads","issues_url":"https://api.github.com/repos/libp2p/go-libp2p/issues{/number}","pulls_url":"https://api.github.com/repos/libp2p/go-libp2p/pulls{/number}","milestones_url":"https://api.github.com/repos/libp2p/go-libp2p/milestones{/number}","notifications_url":"https://api.github.com/repos/libp2p/go-libp2p/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libp2p/go-libp2p/labels{/name}","releases_url":"https://api.github.com/repos/libp2p/go-libp2p/releases{/id}","deployments_url":"https://api.github.com/repos/libp2p/go-libp2p/deployments","created_at":"2015-09-30T23:24:32Z","updated_at":"2018-10-24T07:24:36Z","pushed_at":"2018-10-24T07:41:57Z","git_url":"git://github.com/libp2p/go-libp2p.git","ssh_url":"git@github.com:libp2p/go-libp2p.git","clone_url":"https://github.com/libp2p/go-libp2p.git","svn_url":"https://github.com/libp2p/go-libp2p","homepage":"","size":8268,"stargazers_count":1860,"watchers_count":1860,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":270,"mirror_url":null,"archived":false,"open_issues_count":109,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":270,"open_issues":109,"watchers":1860,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454"},"html":{"href":"https://github.com/libp2p/go-libp2p/pull/454"},"issue":{"href":"https://api.github.com/repos/libp2p/go-libp2p/issues/454"},"comments":{"href":"https://api.github.com/repos/libp2p/go-libp2p/issues/454/comments"},"review_comments":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454/comments"},"review_comment":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libp2p/go-libp2p/pulls/454/commits"},"statuses":{"href":"https://api.github.com/repos/libp2p/go-libp2p/statuses/16fd36c87d1bdaf978a3a6d14137646981f71a3f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"raulk"}}