Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
remove CacheLocator.close() from vertx stop method
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 authored and foxgem committed Jul 28, 2017
1 parent 5bdd68a commit 90c5b1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/top/dteam/dgate/MainVerticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,4 @@ public void start() {
.forEach(apiGatewayConfig -> vertx.deployVerticle(new ApiGateway(apiGatewayConfig)));

}

@Override
public void stop() {
CacheLocator.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class ConfPropertySpec extends Specification {
then:
ApiGatewayRepository.respository.size() == 1
with(ApiGatewayRepository.respository[0]) {
name == 'gateway2'
port == 7002
host == '0.0.0.0'
}
Expand All @@ -22,10 +23,12 @@ class ConfPropertySpec extends Specification {
then:
ApiGatewayRepository.respository.size() == 2
with(ApiGatewayRepository.respository[0]) {
name == 'gateway1'
port == 7001
host == '0.0.0.0'
}
with(ApiGatewayRepository.respository[1]) {
name == 'gateway3'
port == 7003
host == '0.0.0.0'
}
Expand Down

0 comments on commit 90c5b1d

Please sign in to comment.