optimistic-specs icon indicating copy to clipboard operation
optimistic-specs copied to clipboard

Subcomponent lifecycle managements

Open trianglesphere opened this issue 2 years ago • 0 comments

We have several sub-components that exist as go-routines / separate threads. We need to close them on application end, but right now it's not clear which component closes what.

In addition, we don't properly wait for things to be closed:

  • https://github.com/ethereum-optimism/optimistic-specs/pull/275#discussion_r839034686
  • https://github.com/ethereum-optimism/optimistic-specs/blob/95834ed431755f868cd93f016f420436fda38273/opnode/rollup/driver/state.go#L150 (need to wait for bss to be shut)

trianglesphere avatar Mar 30 '22 23:03 trianglesphere