Skip to content

Commit 969950c

Browse files
committed
Use latest version of irpc
1 parent 11d0537 commit 969950c

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ self_cell = "1.1.0"
3333
genawaiter = { version = "0.99.1", features = ["futures03"] }
3434
iroh-base = "0.35.0"
3535
reflink-copy = "0.1.24"
36-
irpc = { version = "0.4.0", features = ["rpc", "quinn_endpoint_setup", "message_spans", "stream"], default-features = false }
37-
irpc-derive = { version = "0.4.0", default-features = false }
36+
irpc = { version = "0.4.0", features = ["rpc", "quinn_endpoint_setup", "message_spans", "stream", "derive"], default-features = false }
3837
iroh-metrics = { version = "0.32.0" }
3938
hashlink = "0.10.0"
4039
futures-buffered = "0.2.11"

src/api/downloader.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ use std::{
1111
use anyhow::bail;
1212
use genawaiter::sync::Gen;
1313
use iroh::{Endpoint, NodeId, endpoint::Connection};
14-
use irpc::channel::mpsc;
15-
use irpc_derive::rpc_requests;
14+
use irpc::{channel::mpsc, rpc_requests};
1615
use n0_future::{BufferedStreamExt, Stream, StreamExt, future, stream};
1716
use rand::seq::SliceRandom;
1817
use serde::{Deserialize, Serialize, de::Error};

src/api/proto.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ use bao_tree::{
2828
io::{BaoContentItem, Leaf, mixed::EncodedItem},
2929
};
3030
use bytes::Bytes;
31-
use irpc::channel::{mpsc, oneshot};
32-
use irpc_derive::rpc_requests;
31+
use irpc::{
32+
channel::{mpsc, oneshot},
33+
rpc_requests,
34+
};
3335
use n0_future::Stream;
3436
use range_collections::RangeSet2;
3537
use serde::{Deserialize, Serialize};

src/store/mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ async fn import_byte_stream(
662662
scope: Scope,
663663
format: BlobFormat,
664664
mut rx: mpsc::Receiver<ImportByteStreamUpdate>,
665-
mut tx: mpsc::Sender<AddProgressItem>,
665+
tx: mpsc::Sender<AddProgressItem>,
666666
) -> anyhow::Result<ImportEntry> {
667667
let mut res = Vec::new();
668668
loop {
@@ -700,7 +700,7 @@ async fn import_path(cmd: ImportPathMsg) -> anyhow::Result<ImportEntry> {
700700
format,
701701
..
702702
},
703-
mut tx,
703+
tx,
704704
..
705705
} = cmd;
706706
let mut res = Vec::new();

src/store/readonly_mem.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,24 @@ impl Actor {
8585
.await
8686
.ok();
8787
}
88-
Command::ImportBytes(ImportBytesMsg { mut tx, .. }) => {
88+
Command::ImportBytes(ImportBytesMsg { tx, .. }) => {
8989
tx.send(io::Error::other("import not supported").into())
9090
.await
9191
.ok();
9292
}
93-
Command::ImportByteStream(ImportByteStreamMsg { mut tx, .. }) => {
93+
Command::ImportByteStream(ImportByteStreamMsg { tx, .. }) => {
9494
tx.send(io::Error::other("import not supported").into())
9595
.await
9696
.ok();
9797
}
98-
Command::ImportPath(ImportPathMsg { mut tx, .. }) => {
98+
Command::ImportPath(ImportPathMsg { tx, .. }) => {
9999
tx.send(io::Error::other("import not supported").into())
100100
.await
101101
.ok();
102102
}
103103
Command::Observe(ObserveMsg {
104104
inner: ObserveRequest { hash },
105-
mut tx,
105+
tx,
106106
..
107107
}) => {
108108
let size = self.data.get_mut(&hash).map(|x| x.data.len() as u64);
@@ -162,7 +162,7 @@ impl Actor {
162162
.await
163163
.ok();
164164
}
165-
Command::ListBlobs(mut cmd) => {
165+
Command::ListBlobs(cmd) => {
166166
let hashes: Vec<Hash> = self.data.keys().cloned().collect();
167167
self.tasks.spawn(async move {
168168
for hash in hashes {

0 commit comments

Comments
 (0)