-
Beta Was this translation helpful? Give feedback.
Answered by
brandur
Jul 2, 2024
Replies: 1 comment 1 reply
-
|
Can you try giving func (w WatchdogArgs) InsertOpts() river.InsertOpts {
return river.InsertOpts{
MaxAttempts: 1,
Queue: "default",
}
}(See the It may be that since a non-pointer implements the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Zibbp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Can you try giving
InsertOptsa non-pointer receiver and see if that fixes it?(See the
(w WatchdogArgs)part where I removed the pointer.)It may be that since a non-pointer implements the
JobArgsinterface (you havefunc (WatchdogArgs) Kind()), then you also need a non-pointer to implementJobArgsWithInsertOptswhich is what extracts anInsertOpts.