Closed indrekj closed 6 years ago
Oh, sorry, didn't notice the PR until now. Good spot but enqueue!
would never return {:error, any}
.
I guess we need to remove | {:error, any}
from..
https://github.com/shinyscorpion/task_bunny/blob/master/lib/task_bunny/job.ex#L199
Would you mind update the PR? Or I will do it sometime soon.
updated
Awesome. Thank you!
It seems that dialyzer is not checking this typespec. Its probably related to macros but I'm not entirely sure.
TaskBunny.Job.enqueue!
spec clearly says that only return value is :ok.This was discovered when using this library in an application: