mirror of https://github.com/Mai-with-u/MaiBot.git
config.MONGODB_PORT应该int
parent
0f5f1c920d
commit
85c377f3c7
|
|
@ -708,7 +708,7 @@ start_time = time.time()
|
|||
|
||||
Database.initialize(
|
||||
host= config.MONGODB_HOST,
|
||||
port= config.MONGODB_PORT,
|
||||
port=int(config.MONGODB_PORT),
|
||||
db_name= config.DATABASE_NAME,
|
||||
username= config.MONGODB_USERNAME,
|
||||
password= config.MONGODB_PASSWORD,
|
||||
|
|
@ -722,4 +722,4 @@ hippocampus = Hippocampus(memory_graph)
|
|||
hippocampus.sync_memory_from_db()
|
||||
|
||||
end_time = time.time()
|
||||
print(f"\033[32m[加载海马体耗时: {end_time - start_time:.2f} 秒]\033[0m")
|
||||
print(f"\033[32m[加载海马体耗时: {end_time - start_time:.2f} 秒]\033[0m")
|
||||
|
|
|
|||
Loading…
Reference in New Issue