Commit 595d89c3 authored by Madhur Shrimal's avatar Madhur Shrimal

move else section outside

parent 47eeb69e
...@@ -417,10 +417,9 @@ func (l *L2OutputSubmitter) loop() { ...@@ -417,10 +417,9 @@ func (l *L2OutputSubmitter) loop() {
l.log.Error("Failed to send proposal transaction", "err", err) l.log.Error("Failed to send proposal transaction", "err", err)
cancel() cancel()
break break
} else {
l.metr.RecordL2BlocksProposed(output.BlockRef)
cancel()
} }
l.metr.RecordL2BlocksProposed(output.BlockRef)
cancel()
case <-l.done: case <-l.done:
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment