Iterating over the list of actors locks it, but so does using Add/Del. Two ways of fixing this:
get a slice of keys and immediately release the lock, and iterate using that
have add/del push to a queue that is fulfilled in the main goroutine after the trimming process has completed
1 is simpler but has two downsides:
might not scale well?
possibly some concurrency issues
Iterating over the list of actors locks it, but so does using Add/Del. Two ways of fixing this:
1. get a slice of keys and immediately release the lock, and iterate using that
2. have add/del push to a queue that is fulfilled in the main goroutine after the trimming process has completed
1 is simpler but has two downsides:
1. might not scale well?
2. possibly some concurrency issues
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Iterating over the list of actors locks it, but so does using Add/Del. Two ways of fixing this:
1 is simpler but has two downsides: