Skip to content

Commit b704559

Browse files
committed
Validate connection liveness check timeout
1 parent 718b844 commit b704559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/neo4j-driver-deno/lib/core/driver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ interface DriverConfig {
106106
trust?: TrustStrategy
107107
fetchSize?: number
108108
logging?: LoggingConfig
109-
notificationFilter?: NotificationFilter,
109+
notificationFilter?: NotificationFilter
110110
connectionLivenessCheckTimeout?: number
111111
}
112112

@@ -909,7 +909,7 @@ function sanitizeConfig (config: any): void {
909909
)
910910
config.connectionTimeout = extractConnectionTimeout(config)
911911

912-
config.connectionLivenessCheckTimeout =
912+
config.connectionLivenessCheckTimeout =
913913
validateConnectionLivenessCheckTimeoutSizeValue(config.connectionLivenessCheckTimeout)
914914
}
915915

@@ -980,7 +980,7 @@ function validateConnectionLivenessCheckTimeoutSizeValue (
980980
throw new Error(
981981
`The connectionLivenessCheckTimeout can only be a positive value or 0 for always. However connectionLivenessCheckTimeout = ${connectionLivenessCheckTimeout}`
982982
)
983-
}
983+
}
984984
return connectionLivenessCheckTimeout
985985
}
986986

0 commit comments

Comments
 (0)