Skip to content

Commit 281bcb2

Browse files
committed
chore(worker): remove before and after method
1 parent dd33b55 commit 281bcb2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

nats.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ func NewWorker(opts ...Option) *Worker {
3939
return w
4040
}
4141

42-
// BeforeRun run script before start worker
43-
func (w *Worker) BeforeRun() error {
44-
return nil
45-
}
46-
47-
// AfterRun run script after start worker
48-
func (w *Worker) AfterRun() error {
49-
return nil
50-
}
51-
5242
func (w *Worker) handle(job queue.Job) error {
5343
// create channel with buffer size 1 to avoid goroutine leak
5444
done := make(chan error, 1)

0 commit comments

Comments
 (0)