File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,13 @@ where
9595 }
9696
9797 /// Converts this [`Connection`] into [`PubSub`].
98+ #[ deprecated( note = "aio::Connection is deprecated. Use [Client::get_async_pubsub] instead" ) ]
9899 pub fn into_pubsub ( self ) -> PubSub < C > {
99100 PubSub :: new ( self )
100101 }
101102
102103 /// Converts this [`Connection`] into [`Monitor`]
104+ #[ deprecated( note = "aio::Connection is deprecated. Use [Client::get_async_pubsub] instead" ) ]
103105 pub fn into_monitor ( self ) -> Monitor < C > {
104106 Monitor :: new ( self )
105107 }
Original file line number Diff line number Diff line change @@ -1280,6 +1280,7 @@ mod basic_async {
12801280 let ctx = TestContext :: new ( ) ;
12811281 block_on_all (
12821282 async move {
1283+ #[ allow( deprecated) ]
12831284 let mut pubsub_conn = ctx. deprecated_async_connection ( ) . await ?. into_pubsub ( ) ;
12841285 pubsub_conn. subscribe ( "phonewave" ) . await ?;
12851286 pubsub_conn. psubscribe ( "*" ) . await ?;
You can’t perform that action at this time.
0 commit comments