Skip to content

Clean up dead and broken code - #1335

Merged
robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:clean-up-dead-code
Sep 2, 2026
Merged

robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:clean-up-dead-code

Conversation

@robsdedude

Copy link
Copy Markdown
Member

The code is broken because

  • in async, AsyncBolt.socket is of type AsyncBoltSocket wrapping asyncio constructs
  • in sync, Bolt.socket is of type BoltSocket wrapping socket.socket or ssl.SSLSocket

Note that (Async)Bolt.socket is never of type ssl.SSLSocket directly. Therefore this check is useless. The code could be fixed, but it's never called. Therefore removing it is the best option.

@robsdedude
robsdedude marked this pull request as ready for review September 1, 2026 17:49

@MaxAake MaxAake left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅

@robsdedude
robsdedude merged commit a3d4f4d into neo4j:6.x Sep 2, 2026
29 checks passed
@robsdedude
robsdedude deleted the clean-up-dead-code branch September 2, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants