peewee already handles threadsafety of the inherently not threadsafe MySQL connection, so there's no need for us to second guess it.
This changes the way the DB framework is initialised: all initialisation happens in the main thread. peewee is smart enough to open per-thread connections to the database on demand in the worker threadds.
As a result, the default DB code (which CHIME doesn't use) is now reported to be threadsafe, which is nice.
peewee already handles threadsafety of the inherently not threadsafe MySQL connection, so there's no need for us to second guess it.
This changes the way the DB framework is initialised: all initialisation happens in the main thread. peewee is smart enough to open per-thread connections to the database on demand in the worker threadds.
As a result, the default DB code (which CHIME doesn't use) is now reported to be threadsafe, which is nice.