Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

banks-client: Update error type to BanksClientError#22058

Merged
joncinque merged 1 commit intosolana-labs:masterfrom
joncinque:banks-client-error
Dec 24, 2021
Merged

banks-client: Update error type to BanksClientError#22058
joncinque merged 1 commit intosolana-labs:masterfrom
joncinque:banks-client-error

Conversation

@joncinque
Copy link
Copy Markdown
Contributor

Problem

We want to encapsulate errors returned from BanksClient.

Summary of Changes

Have all functions on BanksClient return BanksClientError instead of transport::Error or io::Error.

This builds on top of #21739, so only the last commit needs to be looked at. It's more for visibility, whenever we want to land this.

This is not for right now, but these were the changes made to test what would break in SPL, being fixed in solana-labs/solana-program-library#2657

Fixes #

Copy link
Copy Markdown
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, looks perfect. Thanks for doing this!
We can noodle on this for a bit, but probably pull the trigger on master fairly soon.

@joncinque joncinque marked this pull request as ready for review December 23, 2021 20:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 24, 2021

Codecov Report

Merging #22058 (7603754) into master (d06c04d) will increase coverage by 0.0%.
The diff coverage is 40.0%.

@@           Coverage Diff           @@
##           master   #22058   +/-   ##
=======================================
  Coverage    81.3%    81.3%           
=======================================
  Files         519      519           
  Lines      145773   145773           
=======================================
+ Hits       118568   118569    +1     
+ Misses      27205    27204    -1     

@joncinque
Copy link
Copy Markdown
Contributor Author

Merging to unblock #22084

@joncinque joncinque merged commit 214b561 into solana-labs:master Dec 24, 2021
@joncinque joncinque deleted the banks-client-error branch December 24, 2021 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants