Skip to content

Commit

Permalink
fix priority v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dzh committed Apr 13, 2018
1 parent f9643eb commit b2b149f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dimit-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-admin</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion dimit-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-core</artifactId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public boolean isValid() {
if (conf.getStatus().equals(ChannelStatus.CLOSED) || conf.getStatus().equals(ChannelStatus.INVALID)) return false;

// ChannelType
return store.getType() == ChannelType.SEND ? (tps() > 0 && priority() > StoreConst.MIN_PRIORITY) : true;
return store.getType() == ChannelType.SEND ? tps() > 0 : true;
// return store.getType() == ChannelType.SEND ? (tps() > 0 && priority() > StoreConst.MIN_PRIORITY) : true;
}

public int priority() { // TODO priority cache
Expand Down
2 changes: 1 addition & 1 deletion dimit-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-demo</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion dimit-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-redis</artifactId>
</project>
2 changes: 1 addition & 1 deletion dimit-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-store</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion dimit-zk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>
<artifactId>dimit-zk</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.dzh</groupId>
<artifactId>dimit</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit b2b149f

Please sign in to comment.