client: set max message size for decode (#151)

This commit is contained in:
Kirill Fomichev 2023-06-27 09:53:12 -04:00 committed by GitHub
parent cdd6bcbef0
commit 642ef4832b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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
})
}
}