{"action":"created","comment":{"url":"https://api.github.com/repos/gambol99/go-marathon/pulls/comments/77727445","id":77727445,"diff_hunk":"@@ -175,6 +175,8 @@ type marathonClient struct {\n \tlisteners map[EventsChannel]int\n \t// a custom logger for debug log messages\n \tdebugLog *log.Logger\n+\t// wait time between repetitive requests to API\n+\twaitTime time.Duration","path":"client.go","position":5,"original_position":5,"commit_id":"38f690c0e9945069b194e37e4ef41c8068ee1ef8","original_commit_id":"38f690c0e9945069b194e37e4ef41c8068ee1ef8","user":{"login":"timoreimann","id":694826,"avatar_url":"https://avatars.githubusercontent.com/u/694826?v=3","gravatar_id":"","url":"https://api.github.com/users/timoreimann","html_url":"https://github.com/timoreimann","followers_url":"https://api.github.com/users/timoreimann/followers","following_url":"https://api.github.com/users/timoreimann/following{/other_user}","gists_url":"https://api.github.com/users/timoreimann/gists{/gist_id}","starred_url":"https://api.github.com/users/timoreimann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoreimann/subscriptions","organizations_url":"https://api.github.com/users/timoreimann/orgs","repos_url":"https://api.github.com/users/timoreimann/repos","events_url":"https://api.github.com/users/timoreimann/events{/privacy}","received_events_url":"https://api.github.com/users/timoreimann/received_events","type":"User","site_admin":false},"body":"Maybe be a bit more specific and call it `pollingWaitTime`. Would then also update the description to\r\n\r\n`//  wait time between repetitive requests to the API during polling`\r\n\r\nLikewise in the `Config` definition.","created_at":"2016-09-06T22:04:12Z","updated_at":"2016-09-06T22:04:12Z","html_url":"https://github.com/gambol99/go-marathon/pull/193#discussion_r77727445","pull_request_url":"https://api.github.com/repos/gambol99/go-marathon/pulls/193","_links":{"self":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/comments/77727445"},"html":{"href":"https://github.com/gambol99/go-marathon/pull/193#discussion_r77727445"},"pull_request":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/gambol99/go-marathon/pulls/193","id":84018100,"html_url":"https://github.com/gambol99/go-marathon/pull/193","diff_url":"https://github.com/gambol99/go-marathon/pull/193.diff","patch_url":"https://github.com/gambol99/go-marathon/pull/193.patch","issue_url":"https://api.github.com/repos/gambol99/go-marathon/issues/193","number":193,"state":"open","locked":false,"title":"Fix timeout error in WaitOnApplication","user":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"body":"timer.After is a function who returns a new channel, this causes a problem because the timer is resetting in each iteration.\r\n\r\nYou can see a detailed explain in http://stackoverflow.com/questions/35036653/why-doesnt-this-golang-code-to-select-among-multiple-time-after-channels-work/35036775\r\n\r\nRegards","created_at":"2016-09-05T15:33:22Z","updated_at":"2016-09-06T22:04:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe0dfe8bed5f94f39249609d5e87b4f68a32b0e8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gambol99/go-marathon/pulls/193/commits","review_comments_url":"https://api.github.com/repos/gambol99/go-marathon/pulls/193/comments","review_comment_url":"https://api.github.com/repos/gambol99/go-marathon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gambol99/go-marathon/issues/193/comments","statuses_url":"https://api.github.com/repos/gambol99/go-marathon/statuses/38f690c0e9945069b194e37e4ef41c8068ee1ef8","head":{"label":"ch3lo:fix-timeout","ref":"fix-timeout","sha":"38f690c0e9945069b194e37e4ef41c8068ee1ef8","user":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"repo":{"id":67430449,"name":"go-marathon","full_name":"ch3lo/go-marathon","owner":{"login":"ch3lo","id":6663646,"avatar_url":"https://avatars.githubusercontent.com/u/6663646?v=3","gravatar_id":"","url":"https://api.github.com/users/ch3lo","html_url":"https://github.com/ch3lo","followers_url":"https://api.github.com/users/ch3lo/followers","following_url":"https://api.github.com/users/ch3lo/following{/other_user}","gists_url":"https://api.github.com/users/ch3lo/gists{/gist_id}","starred_url":"https://api.github.com/users/ch3lo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ch3lo/subscriptions","organizations_url":"https://api.github.com/users/ch3lo/orgs","repos_url":"https://api.github.com/users/ch3lo/repos","events_url":"https://api.github.com/users/ch3lo/events{/privacy}","received_events_url":"https://api.github.com/users/ch3lo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ch3lo/go-marathon","description":"A GO API library for working with Marathon","fork":true,"url":"https://api.github.com/repos/ch3lo/go-marathon","forks_url":"https://api.github.com/repos/ch3lo/go-marathon/forks","keys_url":"https://api.github.com/repos/ch3lo/go-marathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ch3lo/go-marathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ch3lo/go-marathon/teams","hooks_url":"https://api.github.com/repos/ch3lo/go-marathon/hooks","issue_events_url":"https://api.github.com/repos/ch3lo/go-marathon/issues/events{/number}","events_url":"https://api.github.com/repos/ch3lo/go-marathon/events","assignees_url":"https://api.github.com/repos/ch3lo/go-marathon/assignees{/user}","branches_url":"https://api.github.com/repos/ch3lo/go-marathon/branches{/branch}","tags_url":"https://api.github.com/repos/ch3lo/go-marathon/tags","blobs_url":"https://api.github.com/repos/ch3lo/go-marathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ch3lo/go-marathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ch3lo/go-marathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/ch3lo/go-marathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ch3lo/go-marathon/statuses/{sha}","languages_url":"https://api.github.com/repos/ch3lo/go-marathon/languages","stargazers_url":"https://api.github.com/repos/ch3lo/go-marathon/stargazers","contributors_url":"https://api.github.com/repos/ch3lo/go-marathon/contributors","subscribers_url":"https://api.github.com/repos/ch3lo/go-marathon/subscribers","subscription_url":"https://api.github.com/repos/ch3lo/go-marathon/subscription","commits_url":"https://api.github.com/repos/ch3lo/go-marathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/ch3lo/go-marathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/ch3lo/go-marathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/ch3lo/go-marathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/ch3lo/go-marathon/contents/{+path}","compare_url":"https://api.github.com/repos/ch3lo/go-marathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ch3lo/go-marathon/merges","archive_url":"https://api.github.com/repos/ch3lo/go-marathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ch3lo/go-marathon/downloads","issues_url":"https://api.github.com/repos/ch3lo/go-marathon/issues{/number}","pulls_url":"https://api.github.com/repos/ch3lo/go-marathon/pulls{/number}","milestones_url":"https://api.github.com/repos/ch3lo/go-marathon/milestones{/number}","notifications_url":"https://api.github.com/repos/ch3lo/go-marathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ch3lo/go-marathon/labels{/name}","releases_url":"https://api.github.com/repos/ch3lo/go-marathon/releases{/id}","deployments_url":"https://api.github.com/repos/ch3lo/go-marathon/deployments","created_at":"2016-09-05T15:08:20Z","updated_at":"2016-09-05T15:08:23Z","pushed_at":"2016-09-06T14:41:58Z","git_url":"git://github.com/ch3lo/go-marathon.git","ssh_url":"git@github.com:ch3lo/go-marathon.git","clone_url":"https://github.com/ch3lo/go-marathon.git","svn_url":"https://github.com/ch3lo/go-marathon","homepage":"","size":490,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gambol99:master","ref":"master","sha":"63fea16e82279c1d934bcb4602614308b69f22c3","user":{"login":"gambol99","id":4280679,"avatar_url":"https://avatars.githubusercontent.com/u/4280679?v=3","gravatar_id":"","url":"https://api.github.com/users/gambol99","html_url":"https://github.com/gambol99","followers_url":"https://api.github.com/users/gambol99/followers","following_url":"https://api.github.com/users/gambol99/following{/other_user}","gists_url":"https://api.github.com/users/gambol99/gists{/gist_id}","starred_url":"https://api.github.com/users/gambol99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gambol99/subscriptions","organizations_url":"https://api.github.com/users/gambol99/orgs","repos_url":"https://api.github.com/users/gambol99/repos","events_url":"https://api.github.com/users/gambol99/events{/privacy}","received_events_url":"https://api.github.com/users/gambol99/received_events","type":"User","site_admin":false},"repo":{"id":30648714,"name":"go-marathon","full_name":"gambol99/go-marathon","owner":{"login":"gambol99","id":4280679,"avatar_url":"https://avatars.githubusercontent.com/u/4280679?v=3","gravatar_id":"","url":"https://api.github.com/users/gambol99","html_url":"https://github.com/gambol99","followers_url":"https://api.github.com/users/gambol99/followers","following_url":"https://api.github.com/users/gambol99/following{/other_user}","gists_url":"https://api.github.com/users/gambol99/gists{/gist_id}","starred_url":"https://api.github.com/users/gambol99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gambol99/subscriptions","organizations_url":"https://api.github.com/users/gambol99/orgs","repos_url":"https://api.github.com/users/gambol99/repos","events_url":"https://api.github.com/users/gambol99/events{/privacy}","received_events_url":"https://api.github.com/users/gambol99/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gambol99/go-marathon","description":"A GO API library for working with Marathon","fork":false,"url":"https://api.github.com/repos/gambol99/go-marathon","forks_url":"https://api.github.com/repos/gambol99/go-marathon/forks","keys_url":"https://api.github.com/repos/gambol99/go-marathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gambol99/go-marathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gambol99/go-marathon/teams","hooks_url":"https://api.github.com/repos/gambol99/go-marathon/hooks","issue_events_url":"https://api.github.com/repos/gambol99/go-marathon/issues/events{/number}","events_url":"https://api.github.com/repos/gambol99/go-marathon/events","assignees_url":"https://api.github.com/repos/gambol99/go-marathon/assignees{/user}","branches_url":"https://api.github.com/repos/gambol99/go-marathon/branches{/branch}","tags_url":"https://api.github.com/repos/gambol99/go-marathon/tags","blobs_url":"https://api.github.com/repos/gambol99/go-marathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gambol99/go-marathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gambol99/go-marathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/gambol99/go-marathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gambol99/go-marathon/statuses/{sha}","languages_url":"https://api.github.com/repos/gambol99/go-marathon/languages","stargazers_url":"https://api.github.com/repos/gambol99/go-marathon/stargazers","contributors_url":"https://api.github.com/repos/gambol99/go-marathon/contributors","subscribers_url":"https://api.github.com/repos/gambol99/go-marathon/subscribers","subscription_url":"https://api.github.com/repos/gambol99/go-marathon/subscription","commits_url":"https://api.github.com/repos/gambol99/go-marathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/gambol99/go-marathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/gambol99/go-marathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/gambol99/go-marathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/gambol99/go-marathon/contents/{+path}","compare_url":"https://api.github.com/repos/gambol99/go-marathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gambol99/go-marathon/merges","archive_url":"https://api.github.com/repos/gambol99/go-marathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gambol99/go-marathon/downloads","issues_url":"https://api.github.com/repos/gambol99/go-marathon/issues{/number}","pulls_url":"https://api.github.com/repos/gambol99/go-marathon/pulls{/number}","milestones_url":"https://api.github.com/repos/gambol99/go-marathon/milestones{/number}","notifications_url":"https://api.github.com/repos/gambol99/go-marathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gambol99/go-marathon/labels{/name}","releases_url":"https://api.github.com/repos/gambol99/go-marathon/releases{/id}","deployments_url":"https://api.github.com/repos/gambol99/go-marathon/deployments","created_at":"2015-02-11T13:25:26Z","updated_at":"2016-08-30T07:21:49Z","pushed_at":"2016-09-06T14:41:59Z","git_url":"git://github.com/gambol99/go-marathon.git","ssh_url":"git@github.com:gambol99/go-marathon.git","clone_url":"https://github.com/gambol99/go-marathon.git","svn_url":"https://github.com/gambol99/go-marathon","homepage":"","size":646,"stargazers_count":106,"watchers_count":106,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":12,"forks":66,"open_issues":12,"watchers":106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/193"},"html":{"href":"https://github.com/gambol99/go-marathon/pull/193"},"issue":{"href":"https://api.github.com/repos/gambol99/go-marathon/issues/193"},"comments":{"href":"https://api.github.com/repos/gambol99/go-marathon/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gambol99/go-marathon/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/gambol99/go-marathon/statuses/38f690c0e9945069b194e37e4ef41c8068ee1ef8"}}}}
{"actor":{"display_login":"timoreimann"}}