Skip to content

feat: add rpc protocol, client and server #7

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

Merged
merged 23 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
rklaehn committed Nov 4, 2024
commit ec5ca15eeaa32d256958caed3e1691443aa215ad
6 changes: 4 additions & 2 deletions src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ use proto::{
CreateCollectionRequest, CreateCollectionResponse, DeleteRequest, DownloadResponse,
ExportRequest, ExportResponse, ListIncompleteRequest, ListRequest, ReadAtRequest,
ReadAtResponse, ValidateRequest,
}, tags::{
},
tags::{
CreateRequest as TagsCreateRequest, DeleteRequest as TagDeleteRequest,
ListRequest as TagListRequest, SetRequest as TagsSetRequest, SyncMode,
}, Request, RpcError, RpcResult, RpcService
},
Request, RpcError, RpcResult, RpcService,
};
use quic_rpc::server::{RpcChannel, RpcServerError};

Expand Down
3 changes: 1 addition & 2 deletions src/rpc/client/blobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,14 +995,13 @@ mod tests {
use iroh_net::{NodeAddr, NodeId};
use tokio_util::task::AbortOnDropHandle;

use super::RpcService;
use crate::{
provider::{CustomEventSender, EventSender},
rpc::client::{blobs, tags},
util::local_pool::LocalPool,
};

use super::RpcService;

type RpcClient = quic_rpc::RpcClient<RpcService>;

/// An iroh node that just has the blobs transport
Expand Down
Loading