Skip to content

Commit

Permalink
#283 update code
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy.hu committed Nov 8, 2017
1 parent c939c6a commit d68251d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ public void process(WatchedEvent event) throws Exception {
case NodeCreated:
case NodeDataChanged:
log.info("event type:{}, path:{}", event.getType(), event.getPath());
if (shardingService.isNeedSharding()) {
doBusiness();
}
doBusiness();
default:
// use the thread pool to executor registerNecessaryWatcher by async,
// fix the problem:
Expand Down

0 comments on commit d68251d

Please sign in to comment.