File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ async-graphql = { path = "../../.." }
8
8
async-graphql-poem = { path = " ../../../integrations/poem" }
9
9
tokio = { version = " 1.8" , features = [" macros" , " rt-multi-thread" ] }
10
10
poem = { version = " 3.0.0" , features = [" websocket" ] }
11
- redis = { version = " 0.21.4 " , features = [" aio" , " tokio-comp" ] }
11
+ redis = { version = " 0.25.2 " , features = [" aio" , " tokio-comp" ] }
12
12
futures-util = " 0.3.19"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ struct MutationRoot;
19
19
impl MutationRoot {
20
20
async fn publish ( & self , ctx : & Context < ' _ > , value : String ) -> Result < bool > {
21
21
let client = ctx. data_unchecked :: < Client > ( ) ;
22
- let mut conn = client. get_async_connection ( ) . await ?;
22
+ let mut conn = client. get_multiplexed_async_connection ( ) . await ?;
23
23
conn. publish ( "values" , value) . await ?;
24
24
Ok ( true )
25
25
}
@@ -31,7 +31,7 @@ struct SubscriptionRoot;
31
31
impl SubscriptionRoot {
32
32
async fn values ( & self , ctx : & Context < ' _ > ) -> Result < impl Stream < Item = String > > {
33
33
let client = ctx. data_unchecked :: < Client > ( ) ;
34
- let mut conn = client. get_async_connection ( ) . await ?. into_pubsub ( ) ;
34
+ let mut conn = client. get_async_pubsub ( ) . await ?;
35
35
conn. subscribe ( "values" ) . await ?;
36
36
Ok ( conn
37
37
. into_on_message ( )
You can’t perform that action at this time.
0 commit comments