We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eae9cc commit a2b6b25Copy full SHA for a2b6b25
src/agent/state/oracle.rs
@@ -398,15 +398,17 @@ async fn fetch_publisher_buffer_key(
398
Ok(config.buffer_account.into())
399
}
400
401
+type ProductAndPriceAccounts = (
402
+ HashMap<Pubkey, Arc<ProductEntry>>,
403
+ HashMap<Pubkey, Arc<PriceEntry>>,
404
+);
405
+
406
#[instrument(skip(rpc_client))]
407
async fn fetch_product_and_price_accounts(
408
rpc_client: &RpcClient,
409
oracle_program_key: Pubkey,
410
max_lookup_batch_size: usize,
-) -> Result<(
- HashMap<Pubkey, Arc<ProductEntry>>,
- HashMap<Pubkey, Arc<PriceEntry>>,
-)> {
411
+) -> Result<ProductAndPriceAccounts> {
412
let mut product_entries = HashMap::new();
413
let mut price_entries = HashMap::new();
414
0 commit comments