{"action":"created","issue":{"url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/27","labels_url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/27/comments","events_url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/27/events","html_url":"https://github.com/Swift-Flow/Swift-Flow/issues/27","id":124631656,"number":27,"title":"Potential issue: it is possible to subscribe to store updates multiple times","user":{"login":"garnett","id":829783,"avatar_url":"https://avatars.githubusercontent.com/u/829783?v=3","gravatar_id":"","url":"https://api.github.com/users/garnett","html_url":"https://github.com/garnett","followers_url":"https://api.github.com/users/garnett/followers","following_url":"https://api.github.com/users/garnett/following{/other_user}","gists_url":"https://api.github.com/users/garnett/gists{/gist_id}","starred_url":"https://api.github.com/users/garnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnett/subscriptions","organizations_url":"https://api.github.com/users/garnett/orgs","repos_url":"https://api.github.com/users/garnett/repos","events_url":"https://api.github.com/users/garnett/events{/privacy}","received_events_url":"https://api.github.com/users/garnett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-03T06:16:57Z","updated_at":"2016-01-03T08:33:10Z","closed_at":null,"body":"Since ```subscribers``` is an array (and ```Set``` is not really possible, there is no good way for subscribers to be ```Hashable```) two consecutive ```subscribe``` calls will add subscriber two times, but ```unsubscribe``` removes only one instance.\r\n\r\nPossible solutions:\r\n1. Fail fast with ```assert/abort```\r\n2. Silently ignore next subscription (maybe log something to console)"},"comment":{"url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/comments/168477746","html_url":"https://github.com/Swift-Flow/Swift-Flow/issues/27#issuecomment-168477746","issue_url":"https://api.github.com/repos/Swift-Flow/Swift-Flow/issues/27","id":168477746,"user":{"login":"garnett","id":829783,"avatar_url":"https://avatars.githubusercontent.com/u/829783?v=3","gravatar_id":"","url":"https://api.github.com/users/garnett","html_url":"https://github.com/garnett","followers_url":"https://api.github.com/users/garnett/followers","following_url":"https://api.github.com/users/garnett/following{/other_user}","gists_url":"https://api.github.com/users/garnett/gists{/gist_id}","starred_url":"https://api.github.com/users/garnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnett/subscriptions","organizations_url":"https://api.github.com/users/garnett/orgs","repos_url":"https://api.github.com/users/garnett/repos","events_url":"https://api.github.com/users/garnett/events{/privacy}","received_events_url":"https://api.github.com/users/garnett/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T08:33:10Z","updated_at":"2016-01-03T08:33:10Z","body":"@Ben-G will be happy to do it"}}