rawlinp commented on a change in pull request #2785: In Traffic Router Support 
Snapshots which only update Delivery Services
URL: https://github.com/apache/trafficcontrol/pull/2785#discussion_r236446083
 
 

 ##########
 File path: 
traffic_router/connector/src/main/java/com/comcast/cdn/traffic_control/traffic_router/protocol/RouterNioEndpoint.java
 ##########
 @@ -78,6 +78,16 @@ synchronized private void replaceSSLHosts(final Map<String, 
HandshakeData> sslHo
 
     }
 
+    @Override
+       synchronized public SSLHostConfig removeSslHostConfig(final String 
hostname) {
+        if (getDefaultSSLHostConfigName().equals(hostname)) {
+            
setDefaultSSLHostConfigName((String)(this.sslHostConfigs.keySet().stream().findFirst().filter(k->!k.equals(
 
 Review comment:
   Do you mind reformatting kind of like this?
   ```
   setDefaultSSLHostConfigName((String)(this.sslHostConfigs.keySet()
       .stream()
       .findFirst()
       .filter(k -> !k.equals(hostname))
       .get()));
   ```
   I find that makes it a little easier to read.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to