{"action":"closed","issue":{"url":"https://api.github.com/repos/bagaking/eosplayer/issues/5","repository_url":"https://api.github.com/repos/bagaking/eosplayer","labels_url":"https://api.github.com/repos/bagaking/eosplayer/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bagaking/eosplayer/issues/5/comments","events_url":"https://api.github.com/repos/bagaking/eosplayer/issues/5/events","html_url":"https://github.com/bagaking/eosplayer/issues/5","id":390558105,"node_id":"MDU6SXNzdWUzOTA1NTgxMDU=","number":5,"title":"getIdentity error: concurrent","user":{"login":"bagaking","id":36580987,"node_id":"MDQ6VXNlcjM2NTgwOTg3","avatar_url":"https://avatars1.githubusercontent.com/u/36580987?v=4","gravatar_id":"","url":"https://api.github.com/users/bagaking","html_url":"https://github.com/bagaking","followers_url":"https://api.github.com/users/bagaking/followers","following_url":"https://api.github.com/users/bagaking/following{/other_user}","gists_url":"https://api.github.com/users/bagaking/gists{/gist_id}","starred_url":"https://api.github.com/users/bagaking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagaking/subscriptions","organizations_url":"https://api.github.com/users/bagaking/orgs","repos_url":"https://api.github.com/users/bagaking/repos","events_url":"https://api.github.com/users/bagaking/events{/privacy}","received_events_url":"https://api.github.com/users/bagaking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-13T07:54:57Z","updated_at":"2018-12-13T08:04:55Z","closed_at":"2018-12-13T08:04:55Z","author_association":"OWNER","body":"# When there are multiple concurrent getIdentity requests, scatter will only return the first one.\r\n\r\nThats's a matter of scatter\r\n\r\n## test case:\r\nawait (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));\r\nawait (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));\r\nawait (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));\r\n\r\n### expect\r\nthree results are returned.\r\n\r\n### result \r\nonly one result are returned.\r\n\r\n## conclusion\r\nthus, when you call several eosplayer.getIdentity() concurrently, only the first request will return, and the others will die in the scheduler\r\n\r\n## solution\r\nusing a message queue\r\n\r\n\r\n"}}
{"actor":{"display_login":"bagaking"}}