3
3
#![ allow( unused_results) ]
4
4
#![ allow( unused_variables) ]
5
5
#![ allow( dead_code) ]
6
- use eventstore :: {
6
+ use kurrent :: {
7
7
Client , PersistentSubscriptionEvent , PersistentSubscriptionOptions ,
8
8
PersistentSubscriptionToAllOptions , ReplayParkedMessagesOptions , SubscriptionFilter ,
9
9
} ;
10
10
11
- async fn create_persistent_subscription ( client : & Client ) -> eventstore :: Result < ( ) > {
11
+ async fn create_persistent_subscription ( client : & Client ) -> kurrent :: Result < ( ) > {
12
12
// #region create-persistent-subscription-to-stream
13
13
client
14
14
. create_persistent_subscription ( "test-stream" , "subscription-group" , & Default :: default ( ) )
@@ -18,7 +18,7 @@ async fn create_persistent_subscription(client: &Client) -> eventstore::Result<(
18
18
Ok ( ( ) )
19
19
}
20
20
21
- async fn connect_to_persistent_subscription_to_stream ( client : & Client ) -> eventstore :: Result < ( ) > {
21
+ async fn connect_to_persistent_subscription_to_stream ( client : & Client ) -> kurrent :: Result < ( ) > {
22
22
// #region subscribe-to-persistent-subscription-to-stream
23
23
let mut sub = client
24
24
. subscribe_to_persistent_subscription (
@@ -36,7 +36,7 @@ async fn connect_to_persistent_subscription_to_stream(client: &Client) -> events
36
36
// #endregion subscribe-to-persistent-subscription-to-stream
37
37
}
38
38
39
- async fn connect_to_persistent_subscription_to_all ( client : & Client ) -> eventstore :: Result < ( ) > {
39
+ async fn connect_to_persistent_subscription_to_all ( client : & Client ) -> kurrent :: Result < ( ) > {
40
40
// #region subscribe-to-persistent-subscription-to-all
41
41
let mut sub = client
42
42
. subscribe_to_persistent_subscription_to_all ( "subscription-group" , & Default :: default ( ) )
@@ -50,7 +50,7 @@ async fn connect_to_persistent_subscription_to_all(client: &Client) -> eventstor
50
50
// #endregion subscribe-to-persistent-subscription-to-all
51
51
}
52
52
53
- async fn create_persistent_subscription_to_all ( client : & Client ) -> eventstore :: Result < ( ) > {
53
+ async fn create_persistent_subscription_to_all ( client : & Client ) -> kurrent :: Result < ( ) > {
54
54
// #region create-persistent-subscription-to-all
55
55
let options = PersistentSubscriptionToAllOptions :: default ( )
56
56
. filter ( SubscriptionFilter :: on_stream_name ( ) . add_prefix ( "test" ) ) ;
@@ -64,7 +64,7 @@ async fn create_persistent_subscription_to_all(client: &Client) -> eventstore::R
64
64
65
65
async fn connect_to_persistent_subscription_with_manual_acks (
66
66
client : & Client ,
67
- ) -> eventstore :: Result < ( ) > {
67
+ ) -> kurrent :: Result < ( ) > {
68
68
// #region subscribe-to-persistent-subscription-with-manual-acks
69
69
let mut sub = client
70
70
. subscribe_to_persistent_subscription (
@@ -82,7 +82,7 @@ async fn connect_to_persistent_subscription_with_manual_acks(
82
82
// #endregion subscribe-to-persistent-subscription-with-manual-acks
83
83
}
84
84
85
- async fn update_persistent_subscription ( client : & Client ) -> eventstore :: Result < ( ) > {
85
+ async fn update_persistent_subscription ( client : & Client ) -> kurrent :: Result < ( ) > {
86
86
// #region update-persistent-subscription
87
87
let options = PersistentSubscriptionOptions :: default ( )
88
88
. resolve_link_tos ( true )
@@ -96,7 +96,7 @@ async fn update_persistent_subscription(client: &Client) -> eventstore::Result<(
96
96
Ok ( ( ) )
97
97
}
98
98
99
- async fn delete_persistent_subscription ( client : & Client ) -> eventstore :: Result < ( ) > {
99
+ async fn delete_persistent_subscription ( client : & Client ) -> kurrent :: Result < ( ) > {
100
100
// #region delete-persistent-subscription
101
101
client
102
102
. delete_persistent_subscription ( "test-stream" , "subscription-group" , & Default :: default ( ) )
@@ -106,7 +106,7 @@ async fn delete_persistent_subscription(client: &Client) -> eventstore::Result<(
106
106
Ok ( ( ) )
107
107
}
108
108
109
- async fn get_persistent_subscription_to_stream_info ( client : & Client ) -> eventstore :: Result < ( ) > {
109
+ async fn get_persistent_subscription_to_stream_info ( client : & Client ) -> kurrent :: Result < ( ) > {
110
110
// #region get-persistent-subscription-to-stream-info
111
111
let info = client
112
112
. get_persistent_subscription_info ( "test-stream" , "subscription-group" , & Default :: default ( ) )
@@ -120,7 +120,7 @@ async fn get_persistent_subscription_to_stream_info(client: &Client) -> eventsto
120
120
Ok ( ( ) )
121
121
}
122
122
123
- async fn get_persistent_subscription_to_all_info ( client : & Client ) -> eventstore :: Result < ( ) > {
123
+ async fn get_persistent_subscription_to_all_info ( client : & Client ) -> kurrent :: Result < ( ) > {
124
124
// #region get-persistent-subscription-to-all-info
125
125
let info = client
126
126
. get_persistent_subscription_info_to_all ( "subscription-group" , & Default :: default ( ) )
@@ -134,7 +134,7 @@ async fn get_persistent_subscription_to_all_info(client: &Client) -> eventstore:
134
134
Ok ( ( ) )
135
135
}
136
136
137
- async fn replay_parked_to_stream ( client : & Client ) -> eventstore :: Result < ( ) > {
137
+ async fn replay_parked_to_stream ( client : & Client ) -> kurrent :: Result < ( ) > {
138
138
// #region replay-parked-of-persistent-subscription-to-stream
139
139
let options = ReplayParkedMessagesOptions :: default ( ) . stop_at ( 10 ) ;
140
140
client
@@ -144,7 +144,7 @@ async fn replay_parked_to_stream(client: &Client) -> eventstore::Result<()> {
144
144
Ok ( ( ) )
145
145
}
146
146
147
- async fn replay_parked_to_all ( client : & Client ) -> eventstore :: Result < ( ) > {
147
+ async fn replay_parked_to_all ( client : & Client ) -> kurrent :: Result < ( ) > {
148
148
// #region replay-parked-of-persistent-subscription-to-all
149
149
let options = ReplayParkedMessagesOptions :: default ( ) . stop_at ( 10 ) ;
150
150
client
@@ -154,7 +154,7 @@ async fn replay_parked_to_all(client: &Client) -> eventstore::Result<()> {
154
154
Ok ( ( ) )
155
155
}
156
156
157
- async fn list_persistent_subscription_to_stream ( client : & Client ) -> eventstore :: Result < ( ) > {
157
+ async fn list_persistent_subscription_to_stream ( client : & Client ) -> kurrent :: Result < ( ) > {
158
158
// #region list-persistent-subscriptions-to-stream
159
159
let subscriptions = client
160
160
. list_persistent_subscriptions_for_stream ( "test-stream" , & Default :: default ( ) )
@@ -170,7 +170,7 @@ async fn list_persistent_subscription_to_stream(client: &Client) -> eventstore::
170
170
Ok ( ( ) )
171
171
}
172
172
173
- async fn list_persistent_subscription_to_all ( client : & Client ) -> eventstore :: Result < ( ) > {
173
+ async fn list_persistent_subscription_to_all ( client : & Client ) -> kurrent :: Result < ( ) > {
174
174
// #region list-persistent-subscriptions-to-all
175
175
let subscriptions = client
176
176
. list_persistent_subscriptions_to_all ( & Default :: default ( ) )
@@ -186,7 +186,7 @@ async fn list_persistent_subscription_to_all(client: &Client) -> eventstore::Res
186
186
Ok ( ( ) )
187
187
}
188
188
189
- async fn list_all_persistent_subscription ( client : & Client ) -> eventstore :: Result < ( ) > {
189
+ async fn list_all_persistent_subscription ( client : & Client ) -> kurrent :: Result < ( ) > {
190
190
// #region list-persistent-subscriptions
191
191
let subscriptions = client
192
192
. list_all_persistent_subscriptions ( & Default :: default ( ) )
@@ -202,7 +202,7 @@ async fn list_all_persistent_subscription(client: &Client) -> eventstore::Result
202
202
Ok ( ( ) )
203
203
}
204
204
205
- async fn restart_persistent_subscription_subsystem ( client : & Client ) -> eventstore :: Result < ( ) > {
205
+ async fn restart_persistent_subscription_subsystem ( client : & Client ) -> kurrent :: Result < ( ) > {
206
206
// #region restart-persistent-subscription-subsystem
207
207
client
208
208
. restart_persistent_subscription_subsystem ( & Default :: default ( ) )
0 commit comments