8989from dapr .conf import settings
9090from dapr .conf .helpers import GrpcEndpoint
9191from dapr .proto import api_service_v1 , api_v1 , common_v1
92- from dapr .proto .runtime .v1 .dapr_pb2 import UnsubscribeConfigurationResponse
9392from dapr .version import __version__
9493
9594
@@ -501,9 +500,6 @@ def subscribe(
501500 topic (str): The name of the topic.
502501 metadata (Optional[MetadataTuple]): Additional metadata for the subscription.
503502 dead_letter_topic (Optional[str]): Name of the dead-letter topic.
504- timeout (Optional[int]): The time in seconds to wait for a message before returning None
505- If not set, the `next_message` method will block indefinitely
506- until a message is received.
507503
508504 Returns:
509505 Subscription: The Subscription object managing the stream.
@@ -529,9 +525,6 @@ def subscribe_with_handler(
529525 handler_fn (Callable[..., TopicEventResponse]): The function to call when a message is received.
530526 metadata (Optional[MetadataTuple]): Additional metadata for the subscription.
531527 dead_letter_topic (Optional[str]): Name of the dead-letter topic.
532- timeout (Optional[int]): The time in seconds to wait for a message before returning None
533- If not set, the `next_message` method will block indefinitely
534- until a message is received.
535528 """
536529 subscription = self .subscribe (pubsub_name , topic , metadata , dead_letter_topic )
537530
@@ -1215,7 +1208,7 @@ def unsubscribe_configuration(self, store_name: str, id: str) -> bool:
12151208 bool: True if unsubscribed successfully, False otherwise
12161209 """
12171210 req = api_v1 .UnsubscribeConfigurationRequest (store_name = store_name , id = id )
1218- response : UnsubscribeConfigurationResponse = self ._stub .UnsubscribeConfiguration (req )
1211+ response : api_v1 . UnsubscribeConfigurationResponse = self ._stub .UnsubscribeConfiguration (req )
12191212 return response .ok
12201213
12211214 def try_lock (
0 commit comments