File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ async fn init() -> Result<()> {
66
66
67
67
// Spawn all worker tasks, and wait for all to complete (which will happen if a shutdown
68
68
// signal has been observed).
69
- let tasks = join_all ( [
70
- Box :: pin ( spawn ( network:: wormhole:: spawn ( opts. clone ( ) , store. clone ( ) ) ) ) ,
71
- Box :: pin ( spawn ( network:: pythnet:: spawn ( opts. clone ( ) , store. clone ( ) ) ) ) ,
72
- Box :: pin ( spawn ( metrics_server:: run ( opts. clone ( ) , store. clone ( ) ) ) ) ,
73
- Box :: pin ( spawn ( api:: spawn ( opts. clone ( ) , store. clone ( ) , update_tx) ) ) ,
69
+ let tasks = join_all ( vec ! [
70
+ spawn( network:: wormhole:: spawn( opts. clone( ) , store. clone( ) ) ) ,
71
+ spawn( network:: pythnet:: spawn( opts. clone( ) , store. clone( ) ) ) ,
72
+ spawn( metrics_server:: run( opts. clone( ) , store. clone( ) ) ) ,
73
+ spawn( api:: spawn( opts. clone( ) , store. clone( ) , update_tx) ) ,
74
74
] )
75
75
. await ;
76
76
You can’t perform that action at this time.
0 commit comments