about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-06-17T13·24+0200
committerVincent Ambo <github@tazj.in>2018-06-17T13·46+0200
commitc2308b5ba13ee56c216abf47d149fe2f03b67cf7 (patch)
tree380f87536f1f44506debe57e4881c2bdcf37884f /src/main.rs
parent05fa4769290f7b6d493d6a8a11ae8cda4f9bba49 (diff)
chore(main): Bump chunk size to 750
Still slightly below the Stackdriver limit. However, previous errors
seem to have mostly been related to JSON payloads - which has been
fixed in the previous commit.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 680eb0657ba1..543ebf71485f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -322,7 +322,7 @@ fn flush(client: &Client,
         mem::replace(token, new_token);
     }
 
-    for chunk in entries.chunks(250) {
+    for chunk in entries.chunks(750) {
         let request = prepare_request(chunk);
         if let Err(write_error) = write_entries(client, token, request) {
             error!("Failed to write {} entries: {}", chunk.len(), write_error)