Skip to content

Commit 6222084

Browse files
committed
fixup
1 parent 1fb77e2 commit 6222084

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/compute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ enum ComputeRequest {
6161
enum ComputeProtocol {
6262
#[rpc(reply=oneshot::Sender<u128>)]
6363
Sqr(Sqr),
64-
#[rpc(request=mpsc::Receiver<i64>, reply=oneshot::Sender<i64>)]
64+
#[rpc(updates=mpsc::Receiver<i64>, reply=oneshot::Sender<i64>)]
6565
Sum(Sum),
6666
#[rpc(reply=mpsc::Sender<u64>)]
6767
Fibonacci(Fibonacci),
68-
#[rpc(request=mpsc::Receiver<u64>, reply=mpsc::Sender<u64>)]
68+
#[rpc(updates=mpsc::Receiver<u64>, reply=mpsc::Sender<u64>)]
6969
Multiply(Multiply),
7070
}
7171

examples/derive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum StorageProtocol {
5555
Get(Get),
5656
#[rpc(reply=oneshot::Sender<()>)]
5757
Set(Set),
58-
#[rpc(reply=oneshot::Sender<u64>, request=mpsc::Receiver<(String, String)>)]
58+
#[rpc(reply=oneshot::Sender<u64>, updates=mpsc::Receiver<(String, String)>)]
5959
SetMany(SetMany),
6060
#[rpc(reply=mpsc::Sender<String>)]
6161
List(List),

irpc-derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ATTR_NAME: &str = "rpc";
2020
/// the reply type name
2121
const TX_ATTR: &str = "reply";
2222
/// the request type name
23-
const RX_ATTR: &str = "request";
23+
const RX_ATTR: &str = "updates";
2424
/// Fully qualified path to the default request type
2525
const DEFAULT_RX_TYPE: &str = "::irpc::channel::none::NoReceiver";
2626

@@ -161,7 +161,7 @@ fn generate_type_aliases(
161161
/// Individual enum variants can be annotated with the `#[rpc(...)]` attribute to specify channel types:
162162
///
163163
/// * `#[rpc(reply=SomeType)]`: Specify the transmitter/sender channel type (required)
164-
/// * `#[rpc(reply=SomeType, request=OtherType)]`: Also specify a receiver channel type (optional)
164+
/// * `#[rpc(reply=SomeType, updates=OtherType)]`: Also specify a receiver channel type (optional)
165165
///
166166
/// If `request` is not specified, it defaults to `NoReceiver`.
167167
///

irpc-iroh/examples/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mod storage {
122122
Get(Get),
123123
#[rpc(reply=oneshot::Sender<()>)]
124124
Set(Set),
125-
#[rpc(reply=oneshot::Sender<u64>, request=mpsc::Receiver<(String, String)>)]
125+
#[rpc(reply=oneshot::Sender<u64>, updates=mpsc::Receiver<(String, String)>)]
126126
SetMany(SetMany),
127127
#[rpc(reply=mpsc::Sender<String>)]
128128
List(List),

0 commit comments

Comments
 (0)