Change the Chan to TChan and pass the changes to the writing thread as soon as the STM transaction is committed. 
Change the Chan to TChan and pass the changes to the writing thread as soon as the STM transaction is committed. 
lolepezy/rpki-pub-server