{"action":"created","issue":{"url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/159","repository_url":"https://api.github.com/repos/libp2p/rust-libp2p","labels_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/159/comments","events_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/159/events","html_url":"https://github.com/libp2p/rust-libp2p/pull/159","id":309272981,"number":159,"title":"Implement a custom derive for ConnectionUpgrade","user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars1.githubusercontent.com/u/1412254?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-28T08:44:52Z","updated_at":"2018-04-11T15:37:37Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/libp2p/rust-libp2p/pulls/159","html_url":"https://github.com/libp2p/rust-libp2p/pull/159","diff_url":"https://github.com/libp2p/rust-libp2p/pull/159.diff","patch_url":"https://github.com/libp2p/rust-libp2p/pull/159.patch"},"body":"This would remove the necessity for all this code: https://github.com/tomaka/libp2p-rs/blob/zksummit/zkchat-example/src/main.rs#L234-L316\r\n\r\nInstead, we would replace it with just:\r\n\r\n```rust\r\n#[derive(Clone, SwarpConnectionUpgrade)]\r\nstruct ConnectionUpgrader<P, R> {\r\n    kad: KademliaUpgrade<P, R>,\r\n    identify: IdentifyProtocolConfig,\r\n    floodsub: FloodSubUpgrade,\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/comments/380497489","html_url":"https://github.com/libp2p/rust-libp2p/pull/159#issuecomment-380497489","issue_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/159","id":380497489,"user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars1.githubusercontent.com/u/1412254?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T15:37:37Z","updated_at":"2018-04-11T15:37:37Z","author_association":"MEMBER","body":"This is ready for review!"}}
{"actor":{"display_login":"tomaka"}}