bynk.service.mixed_protocols
Error A service mixes handler forms that do not match its from <protocol>.
A service is one protocol adapter: with from http, from cron, from queue(…), from websocket(…) or from Events(E) it admits only handlers of that form, and one that does not match is refused. Declare a service per protocol. A handler in a service with no from at all is bynk.service.missing_from.
Example
service worker from queue("jobs") { on call(m: String) -> Effect[Int] { … } // ✗ `on call` is not a queue handler}
service count { // ✓ a service of its own on call(m: String) -> Effect[Int] by Caller { … }}In the Book
See also
- The grammar rule it governs:
service_decl. - Every code in its category, Services, on the diagnostic index.
bynk explain bynk.service.mixed_protocolsshows the same from the installed toolchain, without a network.