File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " gcloud-pubsub"
3- version = " 1.4.0 "
3+ version = " 1.4.1 "
44authors = [" yoshidan <naohiro.y@gmail.com>" ]
55edition = " 2021"
66repository = " https://github.com/yoshidan/google-cloud-rust/tree/main/pubsub"
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ impl Client {
278278 }
279279}
280280
281+ #[ allow( deprecated) ]
281282#[ cfg( test) ]
282283mod tests {
283284 use std:: collections:: HashMap ;
Original file line number Diff line number Diff line change @@ -491,6 +491,15 @@ impl Subscription {
491491 /// receive calls f with the outstanding messages from the subscription.
492492 /// It blocks until cancellation token is cancelled, or the service returns a non-retryable error.
493493 /// The standard way to terminate a receive is to use CancellationToken.
494+ ///
495+ /// # Deprecated
496+ /// Deprecated since 1.4.1.
497+ /// This method will be removed in **1.5.0**.
498+ /// Please use [`subscribe`] instead.
499+ #[ deprecated(
500+ since = "1.4.1" ,
501+ note = "This will be removed in 1.5.0. Please use `subscribe` method to get a stream of messages and process the messages from the stream."
502+ ) ]
494503 pub async fn receive < F > (
495504 & self ,
496505 f : impl Fn ( ReceivedMessage , CancellationToken ) -> F + Send + ' static + Sync + Clone ,
@@ -707,7 +716,9 @@ fn create_channel(
707716}
708717
709718#[ cfg( test) ]
719+ #[ allow( deprecated) ]
710720mod tests {
721+
711722 use std:: collections:: HashMap ;
712723 use std:: sync:: atomic:: AtomicU32 ;
713724 use std:: sync:: atomic:: Ordering :: SeqCst ;
You can’t perform that action at this time.
0 commit comments