rework module shutdown process to cancel module context in defer

This commit is contained in:
Joel Wetzell
2026-05-27 20:50:33 -05:00
parent 52ca801fbd
commit 0b494fce91
21 changed files with 197 additions and 216 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func (mcm *MockCounterModule) Type() string {
func (mcm *MockCounterModule) Stop() {
if mcm.cancel != nil {
mcm.cancel()
defer mcm.cancel()
}
}