onEdge tooling on our codebase
OnEdge is a Go-tool to check for incorrect treatment of the
defer-panic-recoverprocess in Go when dealing with errors.
They found that you can cause serious issues (e.g. blockchain fork) if this is not done right (e.g. making global state changes in the middle of the pattern)
Based on how much
recover()is used in
status-gothis shouldn’t take long to implement use.
A deeper look may show that we aren’t using the
recover() is used in
defer is used 118 times in
Here is the search: