Browse Source

Remove unneeded then()

pull/237/head
Spencer Gibb 7 years ago
parent
commit
8c655e1f50
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/WebsocketRoutingFilter.java

2
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/WebsocketRoutingFilter.java

@ -129,7 +129,7 @@ public class WebsocketRoutingFilter implements GlobalFilter, Ordered { @@ -129,7 +129,7 @@ public class WebsocketRoutingFilter implements GlobalFilter, Ordered {
Mono<Void> serverSessionSend = session
.send(proxySession.receive().doOnNext(WebSocketMessage::retain));
// .log("sessionSend", Level.FINE);
return Mono.when(proxySessionSend, serverSessionSend).then();
return Mono.when(proxySessionSend, serverSessionSend);
}
/**

Loading…
Cancel
Save