Currently, there's the terminate channel used to signal the server should shutdown.
Due to the defer cleanups for the processes spawned, those are nicely cleaned up on terminate, but the version handler is not given such an opportunity. Presumably, this will also apply to other handlers and components in the future.
I think we should have good hygiene about using a context.Context from the beginning, and in addition should replace the defer cleanup with a ctx as well.
I'm happy to make this change if it makes sense to have.
Currently, there's the
terminate
channel used to signal the server should shutdown.Due to the
defer cleanup
s for the processes spawned, those are nicely cleaned up onterminate
, but the version handler is not given such an opportunity. Presumably, this will also apply to other handlers and components in the future.I think we should have good hygiene about using a
context.Context
from the beginning, and in addition should replace thedefer cleanup
with actx
as well.I'm happy to make this change if it makes sense to have.