Skip to content

Introduce backends as a module - #120

Merged
lovelydinosaur merged 2 commits into
mainfrom
refactor/package-backends
Oct 26, 2026
Merged

lovelydinosaur merged 2 commits into
mainfrom
refactor/package-backends

Conversation

@cgl

@cgl cgl commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

@cgl
cgl force-pushed the refactor/package-backends branch from 41cbc9c to 67a1175 Compare October 23, 2026 15:51

@lovelydinosaur lovelydinosaur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like backends/__init__.py was committed by mistake.

Comment thread tests/test_network.py
return raw_socket

monkeypatch.setattr("hip._network.socket.create_connection", create_connection)
monkeypatch.setattr("hip.backends.sync.socket.create_connection", create_connection)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another reminder to self...

@lovelydinosaur lovelydinosaur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes. Good little change. Starts to get us towards...

  • Documenting this currently internal-ish bit of API.
  • Multiple backend implementations. (Eg. async support)

@lovelydinosaur
lovelydinosaur merged commit fe053e6 into main Oct 26, 2026
5 checks passed
@lovelydinosaur
lovelydinosaur deleted the refactor/package-backends branch October 26, 2026 16:35
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