File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl Client {
64
64
}
65
65
66
66
impl ShardReader {
67
- pub async fn read_shard (
67
+ pub async fn read (
68
68
& self ,
69
69
max_records : u32 ,
70
70
) -> common:: Result < Vec < ( RecordId , Result < Payload , DecodeError > ) > > {
@@ -89,11 +89,11 @@ impl ShardReader {
89
89
Ok ( records)
90
90
}
91
91
92
- pub async fn delete_shard_reader ( self ) -> common:: Result < ( ) > {
93
- let mut channel = self . channels . channel_at ( self . server_url ) . await ?;
92
+ pub async fn delete ( & self ) -> common:: Result < ( ) > {
93
+ let mut channel = self . channels . channel_at ( self . server_url . clone ( ) ) . await ?;
94
94
channel
95
95
. delete_shard_reader ( DeleteShardReaderRequest {
96
- reader_id : self . reader_id ,
96
+ reader_id : self . reader_id . clone ( ) ,
97
97
} )
98
98
. await ?;
99
99
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -760,7 +760,7 @@ fn async_read_shard(
760
760
max_records : u32 ,
761
761
) -> Term < ' _ > {
762
762
let future = async move {
763
- let result = shard_reader. 0 . read_shard ( max_records) . await ;
763
+ let result = shard_reader. 0 . read ( max_records) . await ;
764
764
OwnedEnv :: new ( ) . send_and_clear ( & pid, |env| match result {
765
765
Err ( err) => ( read_shard_reply ( ) , error ( ) , err. to_string ( ) ) . encode ( env) ,
766
766
Ok ( records) => (
You can’t perform that action at this time.
0 commit comments