Skip to content

Commit

Permalink
do a cancel on goroutine for context
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Nov 18, 2024
1 parent 73c9ed7 commit c177c90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/backend/backup/jobrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func RunBackup(job *store.Job, storeInstance *store.Store, waitChan chan struct{
go func() {
taskC := <-taskChan
task = &taskC
cancel()
}()

for {
Expand Down

0 comments on commit c177c90

Please sign in to comment.