From commits-return-19876-archive-asf-public=cust-asf.ponee.io@pulsar.apache.org Wed Jan 2 22:24:55 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4453C18076D for ; Wed, 2 Jan 2019 22:24:54 +0100 (CET) Received: (qmail 53920 invoked by uid 500); 2 Jan 2019 21:24:53 -0000 Mailing-List: contact commits-help@pulsar.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.apache.org Delivered-To: mailing list commits@pulsar.apache.org Received: (qmail 53898 invoked by uid 99); 2 Jan 2019 21:24:53 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2019 21:24:53 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] merlimat commented on a change in pull request #3273: Adding config auto.offset.reset to PulsarKafkaConsumer Message-ID: <154646429275.26809.6656700567924390506.gitbox@gitbox.apache.org> Date: Wed, 02 Jan 2019 21:24:52 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit merlimat commented on a change in pull request #3273: Adding config auto.offset.reset to PulsarKafkaConsumer URL: https://github.com/apache/pulsar/pull/3273#discussion_r244858568 ########## File path: pulsar-client-kafka-compat/pulsar-client-kafka/src/main/java/org/apache/kafka/clients/consumer/PulsarKafkaConsumer.java ########## @@ -159,6 +163,17 @@ private PulsarKafkaConsumer(ConsumerConfig config, Deserializer keyDeserializ } } + private SubscriptionInitialPosition getStrategy(final String strategy) { + switch(strategy) { + case "earliest": Review comment: Use 4 spaces for indentation ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services