tosc-rs / mgnp

MnemOS Global Networking Protocol
Creative Commons Attribution Share Alike 4.0 International
14 stars 1 forks source link

fix(tricky-pipe): mpsc getting stuck when lapping #35

Closed hawkw closed 8 months ago

hawkw commented 8 months ago

This branch fixes an issue where the tricky-pipe MPSC can get "stuck" after completing one lap around the queue, due to wrong index management. I've simplified the index bitfields a bit, and added a test reproducing the bug (which, sadly, can't run under loom).