Watcher startup context bug: startCtx expires after fx startup #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
watcher.go, theOnStarthook passesstartCtxtocontext.WithCancel(), butstartCtxis the fx startup context which expires after startup completes. The child context derived from it will be cancelled immediately. Should usecontext.Background()instead and cancel via the storedcancelfunc.Ref: issue #5 item 1