mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 22:17:49 +08:00
优化回调设置方式
This commit is contained in:
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
Block a user