Skip to content

Commit

Permalink
Fix before/after cursors. (#67) (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Wu <[email protected]>
  • Loading branch information
linuskendall and richardwu authored Jun 21, 2023
1 parent d085935 commit dfce3aa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions das_api/src/api/api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -177,8 +177,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -210,8 +210,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -240,8 +240,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -333,8 +333,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down

0 comments on commit dfce3aa

Please sign in to comment.