File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
graph/src/components/store Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -824,13 +824,19 @@ impl Batch {
824
824
/// healthy by setting `self.error` to `Some(_)` and must not be written
825
825
/// as it will be in an indeterminate state.
826
826
pub fn append ( & mut self , batch : Batch , stopwatch : & StopwatchMetrics ) -> Result < ( ) , StoreError > {
827
- let res = self . append_inner ( batch, stopwatch) ;
828
- if let Err ( e) = & res {
829
- self . error = Some ( e. clone ( ) ) ;
830
- }
827
+ let res = {
828
+ let _section = stopwatch. start_section ( "transact_block:append_batch:res_append" ) ;
829
+ let res = self . append_inner ( batch, stopwatch) ;
830
+ if let Err ( e) = & res {
831
+ self . error = Some ( e. clone ( ) ) ;
832
+ }
833
+ _section. end ( ) ;
834
+ res
835
+ } ;
831
836
{
832
- stopwatch. start_section ( "transact_block:append_batch:weigh" ) ;
837
+ let _section = stopwatch. start_section ( "transact_block:append_batch:weigh" ) ;
833
838
self . weigh ( ) ;
839
+ _section. end ( ) ;
834
840
}
835
841
res
836
842
}
You can’t perform that action at this time.
0 commit comments