This reverts commit 7ff41966026d990db95cda8ad4414f33264e734d.
Fixes #446. Users were reporting problems after this PR using multithreaded servers like puma. I decided to revert the whole commit because except for the trailing whitespace that was removed, all that rubocop-thread_safety would achieve is that we'd have to add ignore comments.
Sadly I was unable to write a failing test for this in our own system, even with system tests that use puma as their webserver. I'd have to check if puma settings are somehow different in development and test and in which way. Others have also reported that this was the case
This reverts commit 7ff41966026d990db95cda8ad4414f33264e734d.
Fixes #446. Users were reporting problems after this PR using multithreaded servers like puma. I decided to revert the whole commit because except for the trailing whitespace that was removed, all that
rubocop-thread_safety
would achieve is that we'd have to add ignore comments.Sadly I was unable to write a failing test for this in our own system, even with system tests that use puma as their webserver. I'd have to check if puma settings are somehow different in development and test and in which way. Others have also reported that this was the case
For reproduction steps to reproduce the error with even simple setups, see https://github.com/Casecommons/pg_search/issues/446#issuecomment-701550610.
All credit goes to the people in #446 however, especially @connorshea who found the commit that needed to be reverted.