{"action":"closed","issue":{"url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/502","repository_url":"https://api.github.com/repos/libp2p/rust-libp2p","labels_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/502/comments","events_url":"https://api.github.com/repos/libp2p/rust-libp2p/issues/502/events","html_url":"https://github.com/libp2p/rust-libp2p/issues/502","id":362293604,"node_id":"MDU6SXNzdWUzNjIyOTM2MDQ=","number":502,"title":"A collection producing NodeReplaced can be closed by the swarm","user":{"login":"tomaka","id":1412254,"node_id":"MDQ6VXNlcjE0MTIyNTQ=","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":[{"id":882643338,"node_id":"MDU6TGFiZWw4ODI2NDMzMzg=","url":"https://api.github.com/repos/libp2p/rust-libp2p/labels/P-important","name":"P-important","color":"1d76db","default":false},{"id":911108651,"node_id":"MDU6TGFiZWw5MTExMDg2NTE=","url":"https://api.github.com/repos/libp2p/rust-libp2p/labels/difficulty:moderate","name":"difficulty:moderate","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T17:44:46Z","updated_at":"2018-10-01T12:49:18Z","closed_at":"2018-10-01T12:49:18Z","author_association":"MEMBER","body":"Situation:\r\n- We have an active connection to peer id A.\r\n- We try to dial peer id B with an address we think points to B but in reality points to A.\r\n- The collection successfully dials the address but finds A. It replaces the existing connection with A.\r\n- The swarm realizes this and closes the newly-created connection because it doesn't match the expected peer id B.\r\n\r\nI don't know how to fix this, but it looks like we should rethink replacing existing connections."}}
{"actor":{"display_login":"tomaka"}}