diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 22:42:25 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 22:42:25 +0200 |
| commit | 56769630454d2b245a5089fad852a5e09d101dd7 (patch) | |
| tree | 9ce957b81f5e45487849cf40e57c034acda8b1bd /crates/turtle/src | |
| parent | crates/daemon/api/history: Remove pointless sleep (diff) | |
| download | atuin-56769630454d2b245a5089fad852a5e09d101dd7.zip | |
crates/turtle/client/history: Set a higher rpc message limit
The history message can become quite large.
Diffstat (limited to 'crates/turtle/src')
| -rw-r--r-- | crates/turtle/src/client/mod.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/turtle/src/client/mod.rs b/crates/turtle/src/client/mod.rs index a2322fdd..28289652 100644 --- a/crates/turtle/src/client/mod.rs +++ b/crates/turtle/src/client/mod.rs @@ -194,7 +194,14 @@ impl HistoryClient { ) })?; - let client = HistoryServiceClient::new(channel); + let client = HistoryServiceClient::new(channel).max_decoding_message_size({ + const BIT: usize = 1; + const BYTE: usize = 8 * BIT; + const KILO_BYTE: usize = 1024 * BYTE; + const MEGA_BYTE: usize = 1024 * KILO_BYTE; + + 16 * MEGA_BYTE + }); Ok(Self { client }) } |
