Commit ebde5e6 1 parent 5707102 commit ebde5e6 Copy full SHA for ebde5e6
File tree 1 file changed +4
-1
lines changed
src/command/supergraph/compose
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use semver::Version;
15
15
use serde:: Serialize ;
16
16
use std:: io:: Read ;
17
17
use tempfile:: NamedTempFile ;
18
+ use tokio:: join;
18
19
use tokio_stream:: StreamExt ;
19
20
20
21
use rover_client:: shared:: GraphRef ;
@@ -195,12 +196,14 @@ impl Compose {
195
196
let runner =
196
197
crate :: composition:: runner:: Runner :: new ( supergraph_config, supergraph_binary) ;
197
198
let mut messages = runner. run ( ) . await ?;
198
- tokio:: task:: spawn ( async move {
199
+ let join_handle = tokio:: task:: spawn ( async move {
199
200
while let Some ( message) = messages. next ( ) . await {
200
201
eprintln ! ( "{:?}" , message) ;
201
202
}
202
203
} ) ;
203
204
205
+ join ! ( join_handle) . 0 ?;
206
+
204
207
return Ok ( RoverOutput :: EmptySuccess ) ;
205
208
}
206
209
let mut supergraph_config = get_supergraph_config (
You can’t perform that action at this time.
0 commit comments