polm / posuto

🏣📮〠 Japanese postal code data.
MIT License
204 stars 11 forks source link

Fix exception in multithread environment #10

Closed yukota closed 3 years ago

yukota commented 3 years ago

sqlite cursor can't share different thread context. For this reason, Posuto does't share cursor by calling Posto() But, __fetch_code does't use Posto() provide db.

fix #9

polm commented 3 years ago

Thanks, looks good to me!