You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/05/06 23:33:56 UTC

[GitHub] [pulsar] jerrypeng commented on a change in pull request #4222: Add helper method to for IO connectors to use function secrets

jerrypeng commented on a change in pull request #4222: Add helper method to for IO connectors to use function secrets
URL: https://github.com/apache/pulsar/pull/4222#discussion_r281403759
 
 

 ##########
 File path: pulsar-io/twitter/src/main/java/org/apache/pulsar/io/twitter/TwitterFireHose.java
 ##########
 @@ -71,7 +72,7 @@
 
     @Override
     public void open(Map<String, Object> config, SourceContext sourceContext) throws IOException {
-        TwitterFireHoseConfig hoseConfig = TwitterFireHoseConfig.load(config);
+        TwitterFireHoseConfig hoseConfig = IOConfigUtils.loadWithSecrets(config, TwitterFireHoseConfig.class, sourceContext);
 
 Review comment:
   @srkukarni users can still pass the the "sensitive" fields as they have before.  This won't break that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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