🐛 Fix hyper sdk cannot get dealer connection

This commit is contained in:
LittleSheep 2024-07-14 23:56:15 +08:00
parent 7812a06cb1
commit ad83100677

View File

@ -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)