-
Notifications
You must be signed in to change notification settings - Fork 155
Bolt refactoring #1560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bolt refactoring #1560
Conversation
b1bb793 to
8bc069e
Compare
95a2a2d to
6b072b8
Compare
0c72478 to
784230e
Compare
72488b5 to
a9ac556
Compare
b65d6cb to
a8f8e1e
Compare
22c30bd to
8a5dfc4
Compare
8a5dfc4 to
d674aaa
Compare
gjmwoods
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Just some minor stuff 💪
...er/src/main/java/org/neo4j/driver/internal/bolt/pooledimpl/PooledBoltConnectionProvider.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| @SuppressWarnings({"DuplicatedCode", "ConstantValue"}) | ||
| public void connect( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is a bit of a beast but not sure if it can broken down to make it more readable. Looks correct though.
| null, | ||
| (ignored) -> {}) | ||
| .thenCompose(boltConnection -> { | ||
| var supports = boltConnection.protocolVersion().compareTo(new BoltProtocolVersion(4, 0)) >= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could use static versions
driver/src/main/java/org/neo4j/driver/internal/bolt/basicimpl/NettyBoltConnectionProvider.java
Outdated
Show resolved
Hide resolved
driver/src/main/java/org/neo4j/driver/internal/bolt/basicimpl/NettyBoltConnectionProvider.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/neo4j/driver/internal/bolt/pooledimpl/PooledBoltConnectionProvider.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/neo4j/driver/internal/bolt/routedimpl/RoutedBoltConnectionProvider.java
Show resolved
Hide resolved
driver/src/main/java/org/neo4j/driver/internal/cursor/ResultCursorImpl.java
Outdated
Show resolved
Hide resolved
driver/src/main/java/org/neo4j/driver/internal/cursor/ResultCursorImpl.java
Show resolved
Hide resolved
…/PooledBoltConnectionProvider.java Co-authored-by: Greg Woods <[email protected]>
No description provided.