mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 11:28:12 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -86,8 +86,8 @@ public class GatewayConfigServiceImpl implements GatewayConfigService {
|
||||
GatewayConfigDO configDO = null;
|
||||
try {
|
||||
configDO = gatewayConfigDao.getByConfigTypeAndName(
|
||||
GatewayConfigKeyEnum.SD_APP_ID_RATE.getConfigType(),
|
||||
GatewayConfigKeyEnum.SD_APP_ID_RATE.getConfigName()
|
||||
GatewayConfigKeyEnum.SD_APP_RATE.getConfigType(),
|
||||
GatewayConfigKeyEnum.SD_APP_RATE.getConfigName()
|
||||
);
|
||||
if (ValidateUtils.isNull(configDO) || configDO.getVersion() <= requestVersion) {
|
||||
return new AppRateConfig(Long.MIN_VALUE, null);
|
||||
|
||||
@@ -91,7 +91,7 @@ public class BrokerServiceImpl implements BrokerService {
|
||||
for (BrokerDO brokerDO : brokerDOList) {
|
||||
PeakFlowStatusEnum peakFlowStatus = getPeakFlowStatus(brokerDO.getMaxAvgBytesIn(), peakFlow);
|
||||
peakFlowStatusMap.put(
|
||||
peakFlowStatus.code,
|
||||
peakFlowStatus.getCode(),
|
||||
peakFlowStatusMap.getOrDefault(peakFlowStatus.getCode(), 0) + 1
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user