Skip to content

Commit 87c4605

Browse files
xzchaooluyiisme
authored andcommitted
在controller处限制step>0 (#35)
1 parent 77b691c commit 87c4605

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/lookout-reg-server/src/main/java/com/alipay/lookout/remote/report/poller/PollerController.java

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ public void destroy() {
240240
* @param newSlotCount
241241
*/
242242
public synchronized void update(long newStep, int newSlotCount) {
243+
Preconditions.checkArgument(newStep >= 0, "step must greater than 0");
243244
setSlotCount(newSlotCount);
244245
setStep(newStep);
245246
registry.setStep(newStep);

0 commit comments

Comments
 (0)