File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -202,16 +202,16 @@ impl Governance {
202202 is_over_soft_limit : fn ( ) -> bool ,
203203 ) {
204204 let proposal_id = machine. proposal_id ;
205+ let Ok ( ballots) = proposal_ballots ( & mut self . heap_data . proposals , proposal_id. id ) else {
206+ eprintln ! (
207+ "{} Proposal {} for voting machine not found. Machine cannot complete work." ,
208+ LOG_PREFIX , proposal_id. id
209+ ) ;
210+ return ;
211+ } ;
212+
205213 while !machine. is_completely_finished ( ) {
206- if let Ok ( ballots) = proposal_ballots ( & mut self . heap_data . proposals , proposal_id. id ) {
207- machine. continue_processing ( & mut self . neuron_store , ballots, is_over_soft_limit) ;
208- } else {
209- eprintln ! (
210- "{} Proposal {} for voting machine not found. Machine cannot complete work." ,
211- LOG_PREFIX , proposal_id. id
212- ) ;
213- break ;
214- }
214+ machine. continue_processing ( & mut self . neuron_store , ballots, is_over_soft_limit) ;
215215
216216 if is_over_soft_limit ( ) {
217217 break ;
You can’t perform that action at this time.
0 commit comments