Simplify how adapters are run
queueproc calls broker, which calls adatper, which actually runs the adapter. broker doesn’t seem to be otherwise used. It might make sense to merge it into queueproc or to merge broker and adatper. Or merge all three.
Having re-reviewed the code, here’s a summary:
queueprocpicks events, pushes them into a queue of picked eventssrc/broker.rsto run adaptersrc/broker.rsconstructs a trigger message and callssrc/adapter.rsto actually run adapterEach step is necessary and sufficiently complicated that I don’t want to mix it into other concerns. Code is good enough as is.
Closing this issue.