PyMySQLPool icon indicating copy to clipboard operation
PyMySQLPool copied to clipboard

ping_check is not working

Open Greetlist opened this issue 2 years ago • 0 comments

What happened

ping_check is not working, no matter I set it to int or bool

Env

  1. Ubuntu 20.04
  2. Miniconda 23.1.0
  3. Base Env: python3.8

How I fix it temporarily

https://github.com/prprprus/PyMySQLPool/blob/212110afaaa01f1d0d3faa8fe099ad19f48a8fbe/pymysqlpool/pool.py#L179

change __ping_check_timestamp ==> _Pool__ping_check_timestamp

Discussion

I do not know why origin code is not working, I also think it it right at first. Maybe it related to Miniconda or Python version?

Greetlist avatar May 02 '23 13:05 Greetlist