File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
google/pubsub_v1/services/publisher Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,16 @@ def sample_publish():
757757
758758 # Wrap the RPC method; this adds retry and timeout information,
759759 # and friendly error handling.
760- rpc = self ._transport ._wrapped_methods [self ._transport .publish ]
760+
761+ # PublisherTransport
762+ publisher_transport = self ._transport
763+ # Dict of methods to _GapicCallables
764+ wrapped_methods = publisher_transport ._wrapped_methods
765+ # publish method
766+ transport_publish_method = publisher_transport .publish
767+ # _GapicCallable(
768+ rpc = wrapped_methods [transport_publish_method ]
769+ print ("target:" , rpc ._target )
761770
762771 # Certain fields should be provided within the metadata header;
763772 # add these here.
You can’t perform that action at this time.
0 commit comments