hundreds-father-404
03/19/2021, 12:47 AMread_error_count: BTreeMap<String, usize> field on remote_cache::CommandRunner. I think I want to wrap that in a Mutex? Iiuc, we only have one CommandRunner ever, but run() can be called by multiple different threads/tasks.
I don't think I need an Arc because the type isn't being shared across different values?enough-analyst-54434
03/19/2021, 12:53 AMenough-analyst-54434
03/19/2021, 12:53 AMhundreds-father-404
03/19/2021, 1:07 AMMutex<> to be able to mutate, and then Arc<> so that it's cloneable.
Arc<Mutex<BTreeMap<String, usize>>>