Merge pull request #820 from ultrageopro/main
fix: float usage in CONNECTION_TIMEOUT and CONNECTION_ACQUISITION_TIMEOUT
This commit is contained in:
commit
01452f2ddd
1 changed files with 8 additions and 4 deletions
|
|
@ -70,12 +70,16 @@ class Neo4JStorage(BaseGraphStorage):
|
|||
)
|
||||
)
|
||||
CONNECTION_TIMEOUT = float(
|
||||
os.environ.get("NEO4J_CONNECTION_TIMEOUT"),
|
||||
config.get("neo4j", "connection_timeout", fallback=60.0),
|
||||
os.environ.get(
|
||||
"NEO4J_CONNECTION_TIMEOUT",
|
||||
config.get("neo4j", "connection_timeout", fallback=60.0),
|
||||
),
|
||||
)
|
||||
CONNECTION_ACQUISITION_TIMEOUT = float(
|
||||
os.environ.get("NEO4J_CONNECTION_ACQUISITION_TIMEOUT"),
|
||||
config.get("neo4j", "connection_acquisition_timeout", fallback=60.0),
|
||||
os.environ.get(
|
||||
"NEO4J_CONNECTION_ACQUISITION_TIMEOUT",
|
||||
config.get("neo4j", "connection_acquisition_timeout", fallback=60.0),
|
||||
),
|
||||
)
|
||||
DATABASE = os.environ.get(
|
||||
"NEO4J_DATABASE", re.sub(r"[^a-zA-Z0-9-]", "-", namespace)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue