Skip to content

Commit

Permalink
client: Fix compilation with Solana 1.14 (coral-xyz#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Jul 16, 2023
1 parent 4e5280b commit cf057ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- ts: Packages no longer depend on `assert` ([#2535](https://github.com/coral-xyz/anchor/pull/2535)).
- lang: Support for `const` in the `InitSpace` macro ([#2555](https://github.com/coral-xyz/anchor/pull/2555)).
- cli: Support workspace inheritence ([#2570](https://github.com/coral-xyz/anchor/pull/2570)).
- client: Compile with Solana `1.14`([#2572](https://github.com/coral-xyz/anchor/pull/2572)).

### Breaking

Expand Down
7 changes: 4 additions & 3 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,10 @@ impl<C: Deref<Target = impl Signer> + Clone> Program<C> {
client.logs_subscribe(filter, config).await?;

tx.send(unsubscribe).map_err(|e| {
ClientError::SolanaClientPubsubError(PubsubClientError::UnexpectedMessageError(
e.to_string(),
))
ClientError::SolanaClientPubsubError(PubsubClientError::RequestFailed {
message: "Unsubscribe failed".to_string(),
reason: e.to_string(),
})
})?;

while let Some(logs) = notifications.next().await {
Expand Down

0 comments on commit cf057ac

Please sign in to comment.