Skip to content

Commit 022398f

Browse files
author
夜色
committed
升级到0.0.6
1 parent 27af4a3 commit 022398f

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@
4242
</properties>
4343

4444
<dependencies>
45-
<dependency>
46-
<groupId>com.github.mpusher</groupId>
47-
<artifactId>mpush-cache</artifactId>
48-
<version>0.0.6</version>
49-
</dependency>
50-
<dependency>
51-
<groupId>com.github.mpusher</groupId>
52-
<artifactId>mpush-common</artifactId>
53-
<version>0.0.6</version>
54-
</dependency>
5545
<dependency>
5646
<groupId>com.github.mpusher</groupId>
5747
<artifactId>mpush-client</artifactId>

src/main/java/com/shinemo/mpush/alloc/AllocHandler.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454

5555
public void start() {
5656
ZKClient.I.start();//启动ZK
57-
watcher = new ZKServerNodeWatcher(ZKPath.CONNECT_SERVER, new ConnectServerZKNodeCache());//监听长链接服务器节点
58-
watcher.beginWatch();
57+
watcher = new ZKServerNodeWatcher(ZKPath.CONNECT_SERVER, new ConnServerZKNodeCache());//监听长链接服务器节点
58+
watcher.watch();
59+
5960
RedisManager.I.init();
61+
6062
scheduledExecutor = Executors.newSingleThreadScheduledExecutor();
6163
scheduledExecutor.scheduleAtFixedRate(this::refresh, 0, 5, TimeUnit.MINUTES);
6264
}
@@ -116,7 +118,7 @@ private ServerNode convert(ZKServerNode node) {
116118
return serverNode;
117119
}
118120

119-
private class ConnectServerZKNodeCache extends ZKServerNodeCache {
121+
private class ConnServerZKNodeCache extends ZKServerNodeCache {
120122

121123
@Override
122124
public void put(String fullPath, ZKServerNode node) {

0 commit comments

Comments
 (0)