Skip to content

Commit ffd3d51

Browse files
committed
Fix subscription
Signed-off-by: Joe Grund <[email protected]>
1 parent 13a8071 commit ffd3d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

juniper_axum/src/subscriptions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ where
618618
let output = s_rx
619619
.map(|msg| {
620620
Ok(serde_json::to_string(&msg)
621-
.map(ws::Message::Text)
621+
.map(|x| ws::Message::Text(x.into()))
622622
.unwrap_or_else(|e| {
623623
ws::Message::Close(Some(ws::CloseFrame {
624624
code: 1011, // CloseCode::Error

0 commit comments

Comments
 (0)