Skip to content
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

feat: remove direct reqwest dependency from remote interface #73

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

mmastrac
Copy link
Contributor

The denokv remote interface currently requires a specific, older version of reqwest that makes it difficult for consumers to integrate. This PR introduces a RemoteTransport and RemoteResponse trait that allow for embedders to implement this remote over any sort of HTTP transport.

@@ -1,3 +1,3 @@
[toolchain]
channel = "1.73.0"
channel = "1.77.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bumping MSRV for RPITIT

Copy link
Member

@losfair losfair left a comment

Choose a reason for hiding this comment

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

Did you test this on a live database?

remote/lib.rs Outdated Show resolved Hide resolved
remote/lib.rs Outdated Show resolved Hide resolved
remote/lib.rs Outdated Show resolved Hide resolved
@mmastrac
Copy link
Contributor Author

Did you test this on a live database?

Yes, it successfully connects. I was able to send requests as well.

@@ -171,10 +213,67 @@ async fn basics() {
println!("remote");
}

#[tokio::test]
async fn watch() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a watch test since this was missing.

Copy link
Member

@losfair losfair left a comment

Choose a reason for hiding this comment

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

LGTM

@mmastrac mmastrac merged commit 2cacb9e into denoland:main Apr 26, 2024
15 checks passed
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.

None yet

2 participants