We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I stumble upon the following error:
Incorrect macro usage: service functions must be defined the same as a call to `reify`, eg: `(my-service-fn [this other-args] ...)`
When trying to implement a service for a protocol like the following:
(defprotocol SearchStoreService (search [this db pattern] [this db pattern options])) (tk/defservice search-store-service SearchStoreService [[:ConfigService get-in-config]] ... (search ([this db pattern] (search db pattern nil)) ([this db pattern options] (if-let [db-conf (get-in (service-context this) [:stores db])] (core/search db-conf pattern options) (log/errorf "Unknown db (%s)" db))))
The text was updated successfully, but these errors were encountered:
They should work, we've definitely used them. See
https://github.com/puppetlabs/trapperkeeper/blob/master/documentation/Defining-Services.md#multi-arity-protocol-functions
Sorry, something went wrong.
My bad, I didn't used the same syntax.
Thanks!
No branches or pull requests
I stumble upon the following error:
When trying to implement a service for a protocol like the following:
The text was updated successfully, but these errors were encountered: