mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-22 09:56:12 +08:00
Change Background API to take Handler interface
This commit is contained in:
@@ -27,7 +27,7 @@ func TestBackground(t *testing.T) {
|
||||
return nil
|
||||
}
|
||||
|
||||
bg.start(h)
|
||||
bg.start(HandlerFunc(h))
|
||||
|
||||
client.Process(&Task{
|
||||
Type: "send_email",
|
||||
|
Reference in New Issue
Block a user