Skip to content

Commit

Permalink
client: set max message size for decode (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Jun 27, 2023
1 parent cdd6bcb commit 642ef48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ The minor version will be incremented upon a breaking change and the patch versi

### Fixes

- client: set max message size for decode ([#151](https://github.com/rpcpool/yellowstone-grpc/pull/151)).

### Breaking

## [yellowstone-grpc-proto-1.3.0+solana.1.16.1] - 2023-06-16
Expand Down
3 changes: 2 additions & 1 deletion yellowstone-grpc-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ impl GeyserGrpcClient<()> {

Ok(GeyserGrpcClient {
health: HealthClient::with_interceptor(channel.clone(), interceptor.clone()),
geyser: GeyserClient::with_interceptor(channel, interceptor),
geyser: GeyserClient::with_interceptor(channel, interceptor)
.max_decoding_message_size(16 * 1024 * 1024), // 16 MiB
})
}
}
Expand Down

0 comments on commit 642ef48

Please sign in to comment.