Added an argument type for river.AddWorker#460
Conversation
vacoo
commented
Jul 19, 2024
|
@vacoo That type parameter will be inferred from the compiler. You can see working code here that's confirmed to be correct by the test suite: https://github.com/riverqueue/river/blob/master/example_insert_and_work_test.go#L51 It looks like you've got a different problem somewhere. Your tooltip seems to be saying about |
The NextRetry method is already available in river.WorkerDefaults. |
Yep, I know. Are you sure you don't have any additional customization? |
|
Hm, maybe check whether the code compiles outside Goland with If that doesn't work, then maybe you could try copying the code from the example test just in case there's a typo or something somewhere: https://github.com/riverqueue/river/blob/master/example_insert_and_work_test.go |
Strangely, everything works. It just seems to be just a warning |
|
Ah weird. Possibly a GoLand issue somewhere ... |
