1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Remove Mono.defer in ReactorContextWebFilter

Fixes: gh-5010
This commit is contained in:
Rob Winch
2018-02-08 16:19:10 -06:00
parent 66298dcf5d
commit ce5fb51b20
3 changed files with 14 additions and 6 deletions
@@ -45,7 +45,7 @@ public class ReactorContextWebFilter implements WebFilter {
}
private Context withSecurityContext(Context mainContext, ServerWebExchange exchange) {
return mainContext.putAll(Mono.defer(() -> this.repository.load(exchange))
return mainContext.putAll(this.repository.load(exchange)
.as(ReactiveSecurityContextHolder::withSecurityContext));
}
}