@@ -7,6 +7,7 @@ mod tls_utils;
7
7
type Error = Box < dyn std:: error:: Error + Send + Sync + ' static > ;
8
8
9
9
impl crate :: application:: CoLink {
10
+ #[ deprecated( note = "please use `send_variable` instead" ) ]
10
11
pub async fn set_variable (
11
12
& self ,
12
13
key : & str ,
@@ -37,7 +38,7 @@ impl crate::application::CoLink {
37
38
. await
38
39
. is_err ( )
39
40
{
40
- cl. set_variable_with_remote_storage ( & key, & payload, & [ receiver. clone ( ) ] )
41
+ cl. send_variable_with_remote_storage ( & key, & payload, & [ receiver. clone ( ) ] )
41
42
. await ?;
42
43
}
43
44
Ok :: < ( ) , Box < dyn std:: error:: Error + Send + Sync + ' static > > ( ( ) )
@@ -46,6 +47,7 @@ impl crate::application::CoLink {
46
47
Ok ( ( ) )
47
48
}
48
49
50
+ #[ deprecated( note = "please use `receive_variable` instead" ) ]
49
51
pub async fn get_variable ( & self , key : & str , sender : & Participant ) -> Result < Vec < u8 > , Error > {
50
52
self . receive_variable ( key, sender) . await
51
53
}
@@ -61,7 +63,9 @@ impl crate::application::CoLink {
61
63
if let Ok ( res) = self . _receive_variable_p2p ( key, sender) . await {
62
64
return Ok ( res) ;
63
65
}
64
- let res = self . get_variable_with_remote_storage ( key, sender) . await ?;
66
+ let res = self
67
+ . receive_variable_with_remote_storage ( key, sender)
68
+ . await ?;
65
69
Ok ( res)
66
70
}
67
71
}
0 commit comments