Skip to content

Commit

Permalink
bug fix: getSubscribers (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseone committed Mar 16, 2021
1 parent 14517b1 commit 25890c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public Set<String> getSubscribers(String topic) {
subscriberIPs.add(nodeInfo.getIpAndPort());
subscriberNodeIds.add(nodeInfo.getNodeID());
log.info("subscribers node {}, {}", topic, nodeInfo.getNodeID(), nodeInfo.getIpAndPort());
break;
}
break;
}
}
log.info("getSubscribers:{} {}", subscriberIPs, subscriberNodeIds);
Expand Down Expand Up @@ -627,7 +627,7 @@ public byte[] receiveAmopMsg(AmopMsgIn msg) {
}

public static boolean matchTopic(String pattenTopic, String topic) {
if (pattenTopic == topic) {
if (pattenTopic.equals(topic)) {
return true;
}
//verity topic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.quartz.JobDataMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
Expand Down Expand Up @@ -72,7 +73,7 @@ public BaseRspEntity deleteTimerScheduler(@RequestBody TimerScheduler timerSched
return resEntity;
}

@PostMapping("/checkCorn")
@GetMapping("/checkCorn")
public BaseRspEntity checkCorn(@RequestParam("corn") String corn) {
BaseRspEntity resEntity = new BaseRspEntity(ConstantsHelper.RET_SUCCESS);
boolean validExpression = CronExpression.isValidExpression(corn);
Expand Down

0 comments on commit 25890c8

Please sign in to comment.