senzing-garage/stream-producer

Improve location of call to Governor

docktermj opened this issue · 0 comments

Currently in the run() function, the call to the governor is between the read and the write of a message.

https://github.com/Senzing/stream-producer/blob/49f6744472f12b39ade35e96f86ccefa26a3ba2c/stream-producer.py#L1953-L1977

It would be better if the self.govern() call was at the end of the loop so the read and write were a little more atomic.