Configure Bigtable's timeout, enabling by default (#14657) (#14669)

* Configure bigtable's timeout when read-only

* Review comments

* Apply nits (thanks!)

Co-authored-by: Michael Vines <mvines@gmail.com>

* Timeout in the streamed decoding as well

Co-authored-by: Michael Vines <mvines@gmail.com>
(cherry picked from commit dcaa025822)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2021-01-19 15:14:59 +00:00
committed by GitHub
parent 3d6bb95932
commit ca262fdeb9
6 changed files with 74 additions and 24 deletions

View File

@@ -297,6 +297,7 @@ impl JsonRpcService {
runtime
.block_on(solana_storage_bigtable::LedgerStorage::new(
!config.enable_bigtable_ledger_upload,
config.rpc_bigtable_timeout,
))
.map(|bigtable_ledger_storage| {
info!("BigTable ledger storage initialized");