File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -92,18 +92,15 @@ def Dial(
9292 timeout : Optional [float ] = None ,
9393 metadata : Optional [list [tuple [str , str ]]] = None ,
9494 ) -> Any :
95- return grpc .experimental .unary_unary (
96- request ,
97- target ,
95+ channel = grpc .secure_channel (target , channel_credentials ) if channel_credentials else grpc .insecure_channel (target )
96+ return channel .unary_unary (
9897 "/autonat.pb.AutoNAT/Dial" ,
99- autonat__pb2 .Message .SerializeToString ,
100- autonat__pb2 .Message .FromString ,
101- options ,
102- channel_credentials ,
103- insecure ,
104- call_credentials ,
105- compression ,
106- wait_for_ready ,
107- timeout ,
108- metadata ,
98+ request_serializer = autonat__pb2 .Message .SerializeToString ,
99+ response_deserializer = autonat__pb2 .Message .FromString ,
100+ _registered_method = True ,
101+ )(
102+ request ,
103+ timeout = timeout ,
104+ metadata = metadata ,
105+ wait_for_ready = wait_for_ready ,
109106 )
You can’t perform that action at this time.
0 commit comments