{"action":"created","comment":{"url":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments/57286219","id":57286219,"diff_hunk":"@@ -0,0 +1,55 @@\n+/*\n+ * Copyright (C) 2014 - 2016 Softwaremill <http://softwaremill.com>\n+ * Copyright (C) 2016 Lightbend Inc. <http://www.lightbend.com>\n+ */\n+package akka.kafka.scaladsl\n+\n+import scala.concurrent.Future\n+import akka.NotUsed\n+import akka.stream.scaladsl.Flow\n+import akka.stream.scaladsl.Sink\n+import org.apache.kafka.clients.producer.KafkaProducer\n+import org.apache.kafka.clients.producer.ProducerRecord\n+import akka.kafka.internal.ProducerStage\n+import akka.stream.scaladsl.Keep\n+\n+object Producer {\n+\n+  final case class Message[K, V, +PassThrough](\n+    record: ProducerRecord[K, V],\n+    passThrough: PassThrough\n+  )\n+\n+  final case class Result[K, V, PassThrough](\n+    offset: Long,\n+    message: Message[K, V, PassThrough]\n+  )\n+\n+  /**\n+   * Publish records to Kafka topics.\n+   */\n+  def plainSink[K, V](producerProvider: () => KafkaProducer[K, V]): Sink[ProducerRecord[K, V], KafkaProducer[K, V]] =","path":"core/src/main/scala/akka/kafka/scaladsl/Producer.scala","position":31,"original_position":31,"commit_id":"546d7a8907249a97664489afd00bc609f1e93781","original_commit_id":"546d7a8907249a97664489afd00bc609f1e93781","user":{"login":"13h3r","id":435085,"avatar_url":"https://avatars.githubusercontent.com/u/435085?v=3","gravatar_id":"","url":"https://api.github.com/users/13h3r","html_url":"https://github.com/13h3r","followers_url":"https://api.github.com/users/13h3r/followers","following_url":"https://api.github.com/users/13h3r/following{/other_user}","gists_url":"https://api.github.com/users/13h3r/gists{/gist_id}","starred_url":"https://api.github.com/users/13h3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/13h3r/subscriptions","organizations_url":"https://api.github.com/users/13h3r/orgs","repos_url":"https://api.github.com/users/13h3r/repos","events_url":"https://api.github.com/users/13h3r/events{/privacy}","received_events_url":"https://api.github.com/users/13h3r/received_events","type":"User","site_admin":false},"body":"No reason to keep it. It was just unused part of old idea.","created_at":"2016-03-24T08:31:02Z","updated_at":"2016-03-24T08:31:02Z","html_url":"https://github.com/akka/reactive-kafka/pull/115#discussion_r57286219","pull_request_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments/57286219"},"html":{"href":"https://github.com/akka/reactive-kafka/pull/115#discussion_r57286219"},"pull_request":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/akka/reactive-kafka/pulls/115","id":63846352,"html_url":"https://github.com/akka/reactive-kafka/pull/115","diff_url":"https://github.com/akka/reactive-kafka/pull/115.diff","patch_url":"https://github.com/akka/reactive-kafka/pull/115.patch","issue_url":"https://api.github.com/repos/akka/reactive-kafka/issues/115","number":115,"state":"open","locked":false,"title":"Implementation of new api","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"body":"So far only stub of scaladsl api based on discussion in https://github.com/akka/reactive-kafka/pull/113\r\nMy intention is to continue the implementation here.\r\nMore api feedback is of course very welcome.","created_at":"2016-03-23T08:28:40Z","updated_at":"2016-03-24T08:31:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43c3f821e72f9146185d07aa70f5ab8718d332c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/115/commits","review_comments_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/115/comments","review_comment_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akka/reactive-kafka/issues/115/comments","statuses_url":"https://api.github.com/repos/akka/reactive-kafka/statuses/546d7a8907249a97664489afd00bc609f1e93781","head":{"label":"patriknw:wip-new-api-patriknw","ref":"wip-new-api-patriknw","sha":"546d7a8907249a97664489afd00bc609f1e93781","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"repo":{"id":53659645,"name":"reactive-kafka","full_name":"patriknw/reactive-kafka","owner":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patriknw/reactive-kafka","description":"Reactive Streams API for Apache Kafka","fork":true,"url":"https://api.github.com/repos/patriknw/reactive-kafka","forks_url":"https://api.github.com/repos/patriknw/reactive-kafka/forks","keys_url":"https://api.github.com/repos/patriknw/reactive-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patriknw/reactive-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patriknw/reactive-kafka/teams","hooks_url":"https://api.github.com/repos/patriknw/reactive-kafka/hooks","issue_events_url":"https://api.github.com/repos/patriknw/reactive-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/patriknw/reactive-kafka/events","assignees_url":"https://api.github.com/repos/patriknw/reactive-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/patriknw/reactive-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/patriknw/reactive-kafka/tags","blobs_url":"https://api.github.com/repos/patriknw/reactive-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patriknw/reactive-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patriknw/reactive-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/patriknw/reactive-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patriknw/reactive-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/patriknw/reactive-kafka/languages","stargazers_url":"https://api.github.com/repos/patriknw/reactive-kafka/stargazers","contributors_url":"https://api.github.com/repos/patriknw/reactive-kafka/contributors","subscribers_url":"https://api.github.com/repos/patriknw/reactive-kafka/subscribers","subscription_url":"https://api.github.com/repos/patriknw/reactive-kafka/subscription","commits_url":"https://api.github.com/repos/patriknw/reactive-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/patriknw/reactive-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/patriknw/reactive-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/patriknw/reactive-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/patriknw/reactive-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/patriknw/reactive-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patriknw/reactive-kafka/merges","archive_url":"https://api.github.com/repos/patriknw/reactive-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patriknw/reactive-kafka/downloads","issues_url":"https://api.github.com/repos/patriknw/reactive-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/patriknw/reactive-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/patriknw/reactive-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/patriknw/reactive-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patriknw/reactive-kafka/labels{/name}","releases_url":"https://api.github.com/repos/patriknw/reactive-kafka/releases{/id}","deployments_url":"https://api.github.com/repos/patriknw/reactive-kafka/deployments","created_at":"2016-03-11T10:33:25Z","updated_at":"2016-03-11T10:33:25Z","pushed_at":"2016-03-24T08:17:00Z","git_url":"git://github.com/patriknw/reactive-kafka.git","ssh_url":"git@github.com:patriknw/reactive-kafka.git","clone_url":"https://github.com/patriknw/reactive-kafka.git","svn_url":"https://github.com/patriknw/reactive-kafka","homepage":null,"size":640,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"akka:master","ref":"master","sha":"c02b52c88d8b59caa3a705add883ac67d6ff7788","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":28635588,"name":"reactive-kafka","full_name":"akka/reactive-kafka","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/reactive-kafka","description":"Reactive Streams API for Apache Kafka","fork":false,"url":"https://api.github.com/repos/akka/reactive-kafka","forks_url":"https://api.github.com/repos/akka/reactive-kafka/forks","keys_url":"https://api.github.com/repos/akka/reactive-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/reactive-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/reactive-kafka/teams","hooks_url":"https://api.github.com/repos/akka/reactive-kafka/hooks","issue_events_url":"https://api.github.com/repos/akka/reactive-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/akka/reactive-kafka/events","assignees_url":"https://api.github.com/repos/akka/reactive-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/akka/reactive-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/akka/reactive-kafka/tags","blobs_url":"https://api.github.com/repos/akka/reactive-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/reactive-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/reactive-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/reactive-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/reactive-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/reactive-kafka/languages","stargazers_url":"https://api.github.com/repos/akka/reactive-kafka/stargazers","contributors_url":"https://api.github.com/repos/akka/reactive-kafka/contributors","subscribers_url":"https://api.github.com/repos/akka/reactive-kafka/subscribers","subscription_url":"https://api.github.com/repos/akka/reactive-kafka/subscription","commits_url":"https://api.github.com/repos/akka/reactive-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/reactive-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/reactive-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/reactive-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/reactive-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/akka/reactive-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/reactive-kafka/merges","archive_url":"https://api.github.com/repos/akka/reactive-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/reactive-kafka/downloads","issues_url":"https://api.github.com/repos/akka/reactive-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/akka/reactive-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/reactive-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/reactive-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/reactive-kafka/labels{/name}","releases_url":"https://api.github.com/repos/akka/reactive-kafka/releases{/id}","deployments_url":"https://api.github.com/repos/akka/reactive-kafka/deployments","created_at":"2014-12-30T15:30:02Z","updated_at":"2016-03-23T12:51:02Z","pushed_at":"2016-03-24T08:17:01Z","git_url":"git://github.com/akka/reactive-kafka.git","ssh_url":"git@github.com:akka/reactive-kafka.git","clone_url":"https://github.com/akka/reactive-kafka.git","svn_url":"https://github.com/akka/reactive-kafka","homepage":null,"size":617,"stargazers_count":430,"watchers_count":430,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":22,"forks":85,"open_issues":22,"watchers":430,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/115"},"html":{"href":"https://github.com/akka/reactive-kafka/pull/115"},"issue":{"href":"https://api.github.com/repos/akka/reactive-kafka/issues/115"},"comments":{"href":"https://api.github.com/repos/akka/reactive-kafka/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/akka/reactive-kafka/statuses/546d7a8907249a97664489afd00bc609f1e93781"}}}}