优化回调设置方式
parent
9c6765d44e
commit
f357bece62
|
@ -193,10 +193,8 @@ public class RedisRpcConfig implements MessageListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setCallback(long key, CommonCallback<RedisRpcResponse> callback) {
|
private void setCallback(long key, CommonCallback<RedisRpcResponse> callback) {
|
||||||
if (!callbacks.containsKey(key)) {
|
// TODO 如果多个上级点播同一个通道会有问题
|
||||||
callbacks.put(key, callback);
|
callbacks.put(key, callback);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeCallback(long key) {
|
public void removeCallback(long key) {
|
||||||
|
|
Loading…
Reference in New Issue