🐛 Fix hyper sdk cannot get dealer connection
This commit is contained in:
parent
7812a06cb1
commit
ad83100677
@ -62,6 +62,10 @@ func (v *HyperConn) KeepRegisterService() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (v *HyperConn) GetDealerGrpcConn() *grpc.ClientConn {
|
||||
return v.dealerConn
|
||||
}
|
||||
|
||||
func (v *HyperConn) GetServiceGrpcConn(t string) (*grpc.ClientConn, error) {
|
||||
if val, ok := v.cacheGrpcConn[t]; ok {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
||||
|
Loading…
Reference in New Issue
Block a user