File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
examples/pubsub-streaming Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ def next_message(self):
7474 if not self ._is_stream_active () or self ._stream is None :
7575 raise StreamInactiveError ('Stream is not active' )
7676
77-
7877 try :
7978 # Read the next message from the stream directly
8079 message = next (self ._stream )
@@ -94,7 +93,6 @@ def next_message(self):
9493 except Exception as e :
9594 raise Exception (f'Error while fetching message: { e } ' )
9695
97-
9896 def respond (self , message , status ):
9997 try :
10098 status = appcallback_v1 .TopicEventResponse (status = status .value )
Original file line number Diff line number Diff line change 1313topic_name = args .topic
1414dlq_topic_name = topic_name + '_DEAD'
1515
16+
1617def process_message (message ):
1718 # Process the message here
1819 global counter
You can’t perform that action at this time.
0 commit comments