@@ -126,12 +126,14 @@ impl Branch {
126
126
}
127
127
} ;
128
128
129
- connection. append ( edges. iter ( ) . map ( |( h, chain_length) | {
130
- Edge :: new (
131
- IndexCursor :: from ( u32:: from ( * chain_length) ) ,
132
- Block :: from_valid_hash ( * h) ,
133
- )
134
- } ) ) ;
129
+ connection
130
+ . edges
131
+ . extend ( edges. iter ( ) . map ( |( h, chain_length) | {
132
+ Edge :: new (
133
+ IndexCursor :: from ( u32:: from ( * chain_length) ) ,
134
+ Block :: from_valid_hash ( * h) ,
135
+ )
136
+ } ) ) ;
135
137
136
138
Ok :: < _ , async_graphql:: Error > ( connection)
137
139
} ,
@@ -201,7 +203,7 @@ impl Branch {
201
203
. collect ( ) ,
202
204
} ;
203
205
204
- connection. append ( edges. iter ( ) . map ( |( h, i) | {
206
+ connection. edges . extend ( edges. iter ( ) . map ( |( h, i) | {
205
207
Edge :: new ( IndexCursor :: from ( * i) , Transaction :: from_valid_id ( * h) )
206
208
} ) ) ;
207
209
@@ -279,7 +281,7 @@ impl Branch {
279
281
}
280
282
} ;
281
283
282
- connection. append (
284
+ connection. edges . extend (
283
285
edges
284
286
. iter ( )
285
287
. map ( |( vps, cursor) | Edge :: new ( IndexCursor :: from ( * cursor) , vps. clone ( ) ) ) ,
@@ -365,7 +367,7 @@ impl Branch {
365
367
}
366
368
} ;
367
369
368
- connection. append (
370
+ connection. edges . extend (
369
371
edges
370
372
. iter ( )
371
373
. map ( |( pool, cursor) | Edge :: new ( IndexCursor :: from ( * cursor) , pool. clone ( ) ) ) ,
@@ -456,7 +458,7 @@ impl Branch {
456
458
. collect :: < Vec < _ > > ( ) ,
457
459
} ;
458
460
459
- connection. append ( edges. iter ( ) . map ( |( id, cursor) | {
461
+ connection. edges . extend ( edges. iter ( ) . map ( |( id, cursor) | {
460
462
Edge :: new ( IndexCursor :: from ( * cursor) , Block :: from_valid_hash ( * id) )
461
463
} ) ) ;
462
464
@@ -623,7 +625,7 @@ impl Block {
623
625
}
624
626
} ;
625
627
626
- connection. append (
628
+ connection. edges . extend (
627
629
edges
628
630
. iter ( )
629
631
. map ( |( tx, cursor) | Edge :: new ( IndexCursor :: from ( * cursor) , tx. clone ( ) ) ) ,
@@ -1103,7 +1105,7 @@ impl Pool {
1103
1105
} ,
1104
1106
) ;
1105
1107
1106
- connection. append (
1108
+ connection. edges . extend (
1107
1109
edges
1108
1110
. iter ( )
1109
1111
. map ( |( h, i) | Edge :: new ( IndexCursor :: from ( * i) , Block :: from_valid_hash ( * h) ) ) ,
@@ -1468,7 +1470,7 @@ impl VoteProposalStatus {
1468
1470
}
1469
1471
} ;
1470
1472
1471
- connection. append (
1473
+ connection. edges . extend (
1472
1474
edges
1473
1475
. iter ( )
1474
1476
. map ( |( vs, cursor) | Edge :: new ( IndexCursor :: from ( * cursor) , vs. clone ( ) ) ) ,
0 commit comments