{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/skipper/issues/123","repository_url":"https://api.github.com/repos/zalando/skipper","labels_url":"https://api.github.com/repos/zalando/skipper/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/zalando/skipper/issues/123/comments","events_url":"https://api.github.com/repos/zalando/skipper/issues/123/events","html_url":"https://github.com/zalando/skipper/pull/123","id":139853324,"number":123,"title":"client try endpoints optimization","user":{"login":"ewgRa","id":735804,"avatar_url":"https://avatars.githubusercontent.com/u/735804?v=3","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-10T10:53:34Z","updated_at":"2016-03-10T14:08:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zalando/skipper/pulls/123","html_url":"https://github.com/zalando/skipper/pull/123","diff_url":"https://github.com/zalando/skipper/pull/123.diff","patch_url":"https://github.com/zalando/skipper/pull/123.patch"},"body":"Optimization and more understandable client.tryEndpoints\r\n\r\nSeems rotation not tested well, so, I'm not sure that this is correct optimization, but test passed and have same rotation instructions as original code.\r\n\r\nThis version will work faster, since less array copy operations and so on.\r\n\r\nSince I'm not 100% sure that it is not broke something, merge it at your own risk or after more test will be cover more cases."},"comment":{"url":"https://api.github.com/repos/zalando/skipper/issues/comments/194860160","html_url":"https://github.com/zalando/skipper/pull/123#issuecomment-194860160","issue_url":"https://api.github.com/repos/zalando/skipper/issues/123","id":194860160,"user":{"login":"ewgRa","id":735804,"avatar_url":"https://avatars.githubusercontent.com/u/735804?v=3","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T14:08:46Z","updated_at":"2016-03-10T14:08:46Z","body":"done, if I understand right, if timeout happens - than stop looking to next checkpoints and return last error related to timeout."}}