sijie commented on a change in pull request #1354: Issue 1118: refine 
HandlerBase to let only ConsumerImpl and ProducerImpl have client-cnx
URL: https://github.com/apache/incubator-pulsar/pull/1354#discussion_r173970398
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBase.java
 ##########
 @@ -30,16 +30,16 @@
 import org.apache.pulsar.client.api.Schema;
 import org.apache.pulsar.client.impl.conf.ProducerConfigurationData;
 
-public abstract class ProducerBase<T> extends HandlerBase implements 
Producer<T> {
+public abstract class ProducerBase<T> extends HandlerState implements 
Producer<T> {
 
     protected final CompletableFuture<Producer<T>> producerCreatedFuture;
     protected final ProducerConfigurationData conf;
     protected final Schema<T> schema;
 
     protected ProducerBase(PulsarClientImpl client, String topic, 
ProducerConfigurationData conf,
             CompletableFuture<Producer<T>> producerCreatedFuture, Schema<T> 
schema) {
-        super(client, topic, new Backoff(100, TimeUnit.MILLISECONDS, 60, 
TimeUnit.SECONDS,
-                Math.max(100, conf.getSendTimeoutMs() - 100), 
TimeUnit.MILLISECONDS));
+        super(client, topic);
+        //new Backoff(100, TimeUnit.MILLISECONDS, 60, TimeUnit.SECONDS, 
Math.max(100, conf.getSendTimeoutMs() - 100), TimeUnit.MILLISECONDS));
 
 Review comment:
   nit: do we still need this?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to