update: inject flow stat to flow control filter

This commit is contained in:
hongqiaowei
2021-01-18 12:31:48 +08:00
parent 6e55ed8059
commit 1e5295a2b0

View File

@@ -65,11 +65,8 @@ public class FlowControlFilter extends ProxyAggrFilter {
@Resource
private ResourceRateLimitConfigService resourceRateLimitConfigService;
private FlowStat flowStat = new FlowStat();
public FlowStat getFlowStat() {
return flowStat;
}
@Resource
private FlowStat flowStat;
@Override
public Mono<Void> doFilter(ServerWebExchange exchange, WebFilterChain chain) {