From 21ab76b89cba7fd6c37f91699c092cb8f7c25579 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:46:03 -0400 Subject: [PATCH] fix: disable read timeout for tx in db list (#7689) Co-authored-by: Roman Krasiuk --- bin/reth/src/commands/db/list.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/reth/src/commands/db/list.rs b/bin/reth/src/commands/db/list.rs index df05638bc..1c1839188 100644 --- a/bin/reth/src/commands/db/list.rs +++ b/bin/reth/src/commands/db/list.rs @@ -90,6 +90,8 @@ impl TableViewer<()> for ListTableViewer<'_> { fn view(&self) -> Result<(), Self::Error> { self.tool.provider_factory.db_ref().view(|tx| { + // Disable timeout because we are entering a TUI which might read for a long time + tx.inner.disable_timeout(); let table_db = tx.inner.open_db(Some(self.args.table.name())).wrap_err("Could not open db.")?; let stats = tx.inner.db_stat(&table_db).wrap_err(format!("Could not find table: {}", stringify!($table)))?; let total_entries = stats.entries();