File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl Driver {
82
82
pub async fn drive ( mut self , mut state : Box < dyn State > ) -> Result < ( ) > {
83
83
debug ! ( "Starting state machine driver at applied index {}" , state. get_applied_index( ) ) ;
84
84
while let Some ( instruction) = self . state_rx . next ( ) . await {
85
- if let Err ( error) = self . execute ( instruction, & mut * state) . await {
85
+ if let Err ( error) = self . execute ( instruction, & mut * state) {
86
86
error ! ( "Halting state machine due to error: {}" , error) ;
87
87
return Err ( error) ;
88
88
}
@@ -121,7 +121,7 @@ impl Driver {
121
121
}
122
122
123
123
/// Executes a state machine instruction.
124
- pub async fn execute ( & mut self , i : Instruction , state : & mut dyn State ) -> Result < ( ) > {
124
+ fn execute ( & mut self , i : Instruction , state : & mut dyn State ) -> Result < ( ) > {
125
125
debug ! ( "Executing {:?}" , i) ;
126
126
match i {
127
127
Instruction :: Abort => {
You can’t perform that action at this time.
0 commit comments