You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package stgglb
-
- import (
- corrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/coordinator"
- hubrpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/hub"
- )
-
- var CoordinatorRPCPool *corrpc.Pool
- var HubRPCPool *hubrpc.Pool
-
- func InitPools(hubRPC *hubrpc.PoolConfig, corRPC *corrpc.PoolConfig) {
- if hubRPC != nil {
- HubRPCPool = hubrpc.NewPool(*hubRPC)
- }
-
- if corRPC != nil {
- CoordinatorRPCPool = corrpc.NewPool(*corRPC)
- }
- }
|