mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 19:38:20 +08:00
实现core包下AppService,AuthorityService,QuotaService接口单元测试 & TopicQuotaData中bug修改
This commit is contained in:
@@ -29,10 +29,10 @@ public class TopicQuotaData {
|
||||
|
||||
public static TopicQuotaData getClientData(Long producerByteRate, Long consumerByteRate) {
|
||||
TopicQuotaData clientData = new TopicQuotaData();
|
||||
if (!ValidateUtils.isNull(producerByteRate) && consumerByteRate != -1) {
|
||||
if (!ValidateUtils.isNull(consumerByteRate) && consumerByteRate != -1) {
|
||||
clientData.setConsumer_byte_rate(consumerByteRate.toString());
|
||||
}
|
||||
if (!ValidateUtils.isNull(consumerByteRate) && producerByteRate != -1) {
|
||||
if (!ValidateUtils.isNull(producerByteRate) && producerByteRate != -1) {
|
||||
clientData.setProducer_byte_rate(producerByteRate.toString());
|
||||
}
|
||||
return clientData;
|
||||
|
||||
Reference in New Issue
Block a user