Add a stringified credential option for LedgerStorage (#24314) (#24324)

* add a stringified credential option for LedgerStorage

* fix clippy::useless-format warning

* change CredentialOption to enum CredentialType

* rename credential_option to credential_type

* restore LedgerStorage new fn signature

* fmt

Co-authored-by: Tyera Eulberg <tyera@solana.com>

Co-authored-by: Rachael Pai <komimi.p@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2022-04-13 22:17:56 -06:00
committed by GitHub
parent 35d4f390ad
commit 3bee921088
5 changed files with 40 additions and 12 deletions

View File

@ -37,6 +37,7 @@ use {
native_token::lamports_to_sol, pubkey::Pubkey,
},
solana_send_transaction_service::send_transaction_service::{self, SendTransactionService},
solana_storage_bigtable::CredentialType,
std::{
collections::HashSet,
net::SocketAddr,
@ -385,7 +386,7 @@ impl JsonRpcService {
let bigtable_config = solana_storage_bigtable::LedgerStorageConfig {
read_only: !enable_bigtable_ledger_upload,
timeout,
credential_path: None,
credential_type: CredentialType::Filepath(None),
instance_name: bigtable_instance_name.clone(),
};
runtime