替换 localhost 为 127.0.0.1,避免 DNS 解析影响响应速度

This commit is contained in:
JIANG
2025-12-02 10:48:53 +08:00
parent 33c467fe39
commit 523fee275f
7 changed files with 12 additions and 25 deletions

View File

@@ -157,7 +157,7 @@ def decode_datetime(obj):
# 初始化 Redis 连接
# 用redis 限制并发访u
redis_client = redis.Redis(host="localhost", port=6379, db=0)
redis_client = redis.Redis(host="127.0.0.1", port=6379, db=0)
# influxdb数据库连接信息
# influx_url = influxdb_info.url