{"action":"created","comment":{"url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/comments/88646937","pull_request_review_id":9214864,"id":88646937,"diff_hunk":"@@ -57,67 +60,54 @@ class FeedSubscriptionActor(websocketWorker: ActorRef,\n         if (stashedEvents.isEmpty) {\n           context.become(subscribedReliable(cwr, lastRevision, subscriptionSyncTries, subscriber) orElse stopStartSubscription)\n       } else {\n-          context.become(waitForUnstash(cwr, Some(lastRevision), subscriptionSyncTries, stashedEvents.tail, subscriber) orElse stopStartSubscription)\n+          context.become(waitForUnstash(cwr, Some(lastRevision), Some(subscriptionSyncTries), stashedEvents.tail, subscriber) orElse stopStartSubscription)\n           log.debug(s\"Reliable subscription will be started for ${cwr.context} with revision $lastRevision after unstashing of all events\")\n-          unstash(stashedEvents.headOption)\n+          self ! stashedEvents.head\n+          stashedEventsCounter.dec()\n         }\n       } onBackpressureBuffer(maxStashedEventsCount) subscribe(reliableEventsObserver(cwr))\n \n     case BecomeUnreliable ⇒\n-      if (stashedEvents.isEmpty) {\n-        context.become(subscribedUnreliable(cwr) orElse stopStartSubscription)\n-      } else {\n-        Observable[DynamicRequest] { subscriber ⇒\n-          context.become(waitForUnstash(cwr, None, subscriptionSyncTries, stashedEvents.tail, subscriber) orElse stopStartSubscription)\n-        } onBackpressureBuffer(maxStashedEventsCount) subscribe(reliableEventsObserver(cwr))\n-        log.debug(s\"Unreliable subscription will be started for ${cwr.context} after unstashing of all events\")\n-        unstash(stashedEvents.headOption)\n-      }\n-\n-    case RestartSubscription ⇒\n-      continueSubscription(cwr, subscriptionSyncTries + 1)\n+      Observable[DynamicRequest] { subscriber ⇒","path":"src/main/scala/eu/inn/facade/events/FeedSubscriptionActor.scala","position":36,"original_position":36,"commit_id":"1edf83d880f15166edc72eeeeae1df303d8e5b09","original_commit_id":"1edf83d880f15166edc72eeeeae1df303d8e5b09","user":{"login":"aolenev","id":888779,"avatar_url":"https://avatars.githubusercontent.com/u/888779?v=3","gravatar_id":"","url":"https://api.github.com/users/aolenev","html_url":"https://github.com/aolenev","followers_url":"https://api.github.com/users/aolenev/followers","following_url":"https://api.github.com/users/aolenev/following{/other_user}","gists_url":"https://api.github.com/users/aolenev/gists{/gist_id}","starred_url":"https://api.github.com/users/aolenev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aolenev/subscriptions","organizations_url":"https://api.github.com/users/aolenev/orgs","repos_url":"https://api.github.com/users/aolenev/repos","events_url":"https://api.github.com/users/aolenev/events{/privacy}","received_events_url":"https://api.github.com/users/aolenev/received_events","type":"User","site_admin":false},"body":"ты прав, сейчас исправлю","created_at":"2016-11-18T12:14:24Z","updated_at":"2016-11-18T12:14:24Z","html_url":"https://github.com/InnovaCo/hyper-facade/pull/88#discussion_r88646937","pull_request_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/comments/88646937"},"html":{"href":"https://github.com/InnovaCo/hyper-facade/pull/88#discussion_r88646937"},"pull_request":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88","id":94344308,"html_url":"https://github.com/InnovaCo/hyper-facade/pull/88","diff_url":"https://github.com/InnovaCo/hyper-facade/pull/88.diff","patch_url":"https://github.com/InnovaCo/hyper-facade/pull/88.patch","issue_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/88","number":88,"state":"open","locked":false,"title":"Fix resubscription issue","user":{"login":"aolenev","id":888779,"avatar_url":"https://avatars.githubusercontent.com/u/888779?v=3","gravatar_id":"","url":"https://api.github.com/users/aolenev","html_url":"https://github.com/aolenev","followers_url":"https://api.github.com/users/aolenev/followers","following_url":"https://api.github.com/users/aolenev/following{/other_user}","gists_url":"https://api.github.com/users/aolenev/gists{/gist_id}","starred_url":"https://api.github.com/users/aolenev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aolenev/subscriptions","organizations_url":"https://api.github.com/users/aolenev/orgs","repos_url":"https://api.github.com/users/aolenev/repos","events_url":"https://api.github.com/users/aolenev/events{/privacy}","received_events_url":"https://api.github.com/users/aolenev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-18T11:17:16Z","updated_at":"2016-11-18T12:14:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a0c239e0e63701b96c37d3bbd50705265876033","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88/commits","review_comments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88/comments","review_comment_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/88/comments","statuses_url":"https://api.github.com/repos/InnovaCo/hyper-facade/statuses/1edf83d880f15166edc72eeeeae1df303d8e5b09","head":{"label":"InnovaCo:fix-resubscription-issue","ref":"fix-resubscription-issue","sha":"1edf83d880f15166edc72eeeeae1df303d8e5b09","user":{"login":"InnovaCo","id":1000990,"avatar_url":"https://avatars.githubusercontent.com/u/1000990?v=3","gravatar_id":"","url":"https://api.github.com/users/InnovaCo","html_url":"https://github.com/InnovaCo","followers_url":"https://api.github.com/users/InnovaCo/followers","following_url":"https://api.github.com/users/InnovaCo/following{/other_user}","gists_url":"https://api.github.com/users/InnovaCo/gists{/gist_id}","starred_url":"https://api.github.com/users/InnovaCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InnovaCo/subscriptions","organizations_url":"https://api.github.com/users/InnovaCo/orgs","repos_url":"https://api.github.com/users/InnovaCo/repos","events_url":"https://api.github.com/users/InnovaCo/events{/privacy}","received_events_url":"https://api.github.com/users/InnovaCo/received_events","type":"Organization","site_admin":false},"repo":{"id":36079384,"name":"hyper-facade","full_name":"InnovaCo/hyper-facade","owner":{"login":"InnovaCo","id":1000990,"avatar_url":"https://avatars.githubusercontent.com/u/1000990?v=3","gravatar_id":"","url":"https://api.github.com/users/InnovaCo","html_url":"https://github.com/InnovaCo","followers_url":"https://api.github.com/users/InnovaCo/followers","following_url":"https://api.github.com/users/InnovaCo/following{/other_user}","gists_url":"https://api.github.com/users/InnovaCo/gists{/gist_id}","starred_url":"https://api.github.com/users/InnovaCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InnovaCo/subscriptions","organizations_url":"https://api.github.com/users/InnovaCo/orgs","repos_url":"https://api.github.com/users/InnovaCo/repos","events_url":"https://api.github.com/users/InnovaCo/events{/privacy}","received_events_url":"https://api.github.com/users/InnovaCo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InnovaCo/hyper-facade","description":null,"fork":false,"url":"https://api.github.com/repos/InnovaCo/hyper-facade","forks_url":"https://api.github.com/repos/InnovaCo/hyper-facade/forks","keys_url":"https://api.github.com/repos/InnovaCo/hyper-facade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InnovaCo/hyper-facade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InnovaCo/hyper-facade/teams","hooks_url":"https://api.github.com/repos/InnovaCo/hyper-facade/hooks","issue_events_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/events{/number}","events_url":"https://api.github.com/repos/InnovaCo/hyper-facade/events","assignees_url":"https://api.github.com/repos/InnovaCo/hyper-facade/assignees{/user}","branches_url":"https://api.github.com/repos/InnovaCo/hyper-facade/branches{/branch}","tags_url":"https://api.github.com/repos/InnovaCo/hyper-facade/tags","blobs_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/refs{/sha}","trees_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InnovaCo/hyper-facade/statuses/{sha}","languages_url":"https://api.github.com/repos/InnovaCo/hyper-facade/languages","stargazers_url":"https://api.github.com/repos/InnovaCo/hyper-facade/stargazers","contributors_url":"https://api.github.com/repos/InnovaCo/hyper-facade/contributors","subscribers_url":"https://api.github.com/repos/InnovaCo/hyper-facade/subscribers","subscription_url":"https://api.github.com/repos/InnovaCo/hyper-facade/subscription","commits_url":"https://api.github.com/repos/InnovaCo/hyper-facade/commits{/sha}","git_commits_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/commits{/sha}","comments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/comments{/number}","issue_comment_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/comments{/number}","contents_url":"https://api.github.com/repos/InnovaCo/hyper-facade/contents/{+path}","compare_url":"https://api.github.com/repos/InnovaCo/hyper-facade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InnovaCo/hyper-facade/merges","archive_url":"https://api.github.com/repos/InnovaCo/hyper-facade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InnovaCo/hyper-facade/downloads","issues_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues{/number}","pulls_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls{/number}","milestones_url":"https://api.github.com/repos/InnovaCo/hyper-facade/milestones{/number}","notifications_url":"https://api.github.com/repos/InnovaCo/hyper-facade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InnovaCo/hyper-facade/labels{/name}","releases_url":"https://api.github.com/repos/InnovaCo/hyper-facade/releases{/id}","deployments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/deployments","created_at":"2015-05-22T15:22:28Z","updated_at":"2016-11-10T16:34:12Z","pushed_at":"2016-11-18T11:17:16Z","git_url":"git://github.com/InnovaCo/hyper-facade.git","ssh_url":"git@github.com:InnovaCo/hyper-facade.git","clone_url":"https://github.com/InnovaCo/hyper-facade.git","svn_url":"https://github.com/InnovaCo/hyper-facade","homepage":null,"size":777,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":18,"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"InnovaCo:master","ref":"master","sha":"7da000638b39a3e92011875bedcfc50ee55ce5cd","user":{"login":"InnovaCo","id":1000990,"avatar_url":"https://avatars.githubusercontent.com/u/1000990?v=3","gravatar_id":"","url":"https://api.github.com/users/InnovaCo","html_url":"https://github.com/InnovaCo","followers_url":"https://api.github.com/users/InnovaCo/followers","following_url":"https://api.github.com/users/InnovaCo/following{/other_user}","gists_url":"https://api.github.com/users/InnovaCo/gists{/gist_id}","starred_url":"https://api.github.com/users/InnovaCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InnovaCo/subscriptions","organizations_url":"https://api.github.com/users/InnovaCo/orgs","repos_url":"https://api.github.com/users/InnovaCo/repos","events_url":"https://api.github.com/users/InnovaCo/events{/privacy}","received_events_url":"https://api.github.com/users/InnovaCo/received_events","type":"Organization","site_admin":false},"repo":{"id":36079384,"name":"hyper-facade","full_name":"InnovaCo/hyper-facade","owner":{"login":"InnovaCo","id":1000990,"avatar_url":"https://avatars.githubusercontent.com/u/1000990?v=3","gravatar_id":"","url":"https://api.github.com/users/InnovaCo","html_url":"https://github.com/InnovaCo","followers_url":"https://api.github.com/users/InnovaCo/followers","following_url":"https://api.github.com/users/InnovaCo/following{/other_user}","gists_url":"https://api.github.com/users/InnovaCo/gists{/gist_id}","starred_url":"https://api.github.com/users/InnovaCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InnovaCo/subscriptions","organizations_url":"https://api.github.com/users/InnovaCo/orgs","repos_url":"https://api.github.com/users/InnovaCo/repos","events_url":"https://api.github.com/users/InnovaCo/events{/privacy}","received_events_url":"https://api.github.com/users/InnovaCo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/InnovaCo/hyper-facade","description":null,"fork":false,"url":"https://api.github.com/repos/InnovaCo/hyper-facade","forks_url":"https://api.github.com/repos/InnovaCo/hyper-facade/forks","keys_url":"https://api.github.com/repos/InnovaCo/hyper-facade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InnovaCo/hyper-facade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InnovaCo/hyper-facade/teams","hooks_url":"https://api.github.com/repos/InnovaCo/hyper-facade/hooks","issue_events_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/events{/number}","events_url":"https://api.github.com/repos/InnovaCo/hyper-facade/events","assignees_url":"https://api.github.com/repos/InnovaCo/hyper-facade/assignees{/user}","branches_url":"https://api.github.com/repos/InnovaCo/hyper-facade/branches{/branch}","tags_url":"https://api.github.com/repos/InnovaCo/hyper-facade/tags","blobs_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/refs{/sha}","trees_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InnovaCo/hyper-facade/statuses/{sha}","languages_url":"https://api.github.com/repos/InnovaCo/hyper-facade/languages","stargazers_url":"https://api.github.com/repos/InnovaCo/hyper-facade/stargazers","contributors_url":"https://api.github.com/repos/InnovaCo/hyper-facade/contributors","subscribers_url":"https://api.github.com/repos/InnovaCo/hyper-facade/subscribers","subscription_url":"https://api.github.com/repos/InnovaCo/hyper-facade/subscription","commits_url":"https://api.github.com/repos/InnovaCo/hyper-facade/commits{/sha}","git_commits_url":"https://api.github.com/repos/InnovaCo/hyper-facade/git/commits{/sha}","comments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/comments{/number}","issue_comment_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/comments{/number}","contents_url":"https://api.github.com/repos/InnovaCo/hyper-facade/contents/{+path}","compare_url":"https://api.github.com/repos/InnovaCo/hyper-facade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InnovaCo/hyper-facade/merges","archive_url":"https://api.github.com/repos/InnovaCo/hyper-facade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InnovaCo/hyper-facade/downloads","issues_url":"https://api.github.com/repos/InnovaCo/hyper-facade/issues{/number}","pulls_url":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls{/number}","milestones_url":"https://api.github.com/repos/InnovaCo/hyper-facade/milestones{/number}","notifications_url":"https://api.github.com/repos/InnovaCo/hyper-facade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InnovaCo/hyper-facade/labels{/name}","releases_url":"https://api.github.com/repos/InnovaCo/hyper-facade/releases{/id}","deployments_url":"https://api.github.com/repos/InnovaCo/hyper-facade/deployments","created_at":"2015-05-22T15:22:28Z","updated_at":"2016-11-10T16:34:12Z","pushed_at":"2016-11-18T11:17:16Z","git_url":"git://github.com/InnovaCo/hyper-facade.git","ssh_url":"git@github.com:InnovaCo/hyper-facade.git","clone_url":"https://github.com/InnovaCo/hyper-facade.git","svn_url":"https://github.com/InnovaCo/hyper-facade","homepage":null,"size":777,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":18,"forks":1,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88"},"html":{"href":"https://github.com/InnovaCo/hyper-facade/pull/88"},"issue":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/88"},"comments":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/InnovaCo/hyper-facade/statuses/1edf83d880f15166edc72eeeeae1df303d8e5b09"}}}}
{"actor":{"display_login":"aolenev"}}