From bf7432f3924f81c5edcc7ff39f1fc3cba021eea4 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Wed, 10 May 2023 09:02:35 -0400 Subject: [PATCH] Patch bash history import regression (#970) * At least patch this on the server side so we don't loop forever * Postgres doesn't support ( ) .await; + if req.sync_ts.timestamp_nanos() < 0 || req.history_ts.timestamp_nanos() < 0 { + error!("client asked for history from < epoch 0"); + return Err( + ErrorResponse::reply("asked for history from before epoch 0") + .with_status(StatusCode::BAD_REQUEST), + ); + } + if let Err(e) = history { error!("failed to load history: {}", e); return Err(ErrorResponse::reply("failed to load history")