File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl Client {
6464}
6565
6666impl ShardReader {
67- pub async fn read_shard (
67+ pub async fn read (
6868 & self ,
6969 max_records : u32 ,
7070 ) -> common:: Result < Vec < ( RecordId , Result < Payload , DecodeError > ) > > {
@@ -89,11 +89,11 @@ impl ShardReader {
8989 Ok ( records)
9090 }
9191
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 ?;
9494 channel
9595 . delete_shard_reader ( DeleteShardReaderRequest {
96- reader_id : self . reader_id ,
96+ reader_id : self . reader_id . clone ( ) ,
9797 } )
9898 . await ?;
9999 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -760,7 +760,7 @@ fn async_read_shard(
760760 max_records : u32 ,
761761) -> Term < ' _ > {
762762 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 ;
764764 OwnedEnv :: new ( ) . send_and_clear ( & pid, |env| match result {
765765 Err ( err) => ( read_shard_reply ( ) , error ( ) , err. to_string ( ) ) . encode ( env) ,
766766 Ok ( records) => (
You can’t perform that action at this time.
0 commit comments