Bug: Watcher startup context expires immediately #43
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?
From #5 item 1:
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.