Skip to content

Commit a2b6b25

Browse files
committed
Complex type
1 parent 6eae9cc commit a2b6b25

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/agent/state/oracle.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,17 @@ async fn fetch_publisher_buffer_key(
398398
Ok(config.buffer_account.into())
399399
}
400400

401+
type ProductAndPriceAccounts = (
402+
HashMap<Pubkey, Arc<ProductEntry>>,
403+
HashMap<Pubkey, Arc<PriceEntry>>,
404+
);
405+
401406
#[instrument(skip(rpc_client))]
402407
async fn fetch_product_and_price_accounts(
403408
rpc_client: &RpcClient,
404409
oracle_program_key: Pubkey,
405410
max_lookup_batch_size: usize,
406-
) -> Result<(
407-
HashMap<Pubkey, Arc<ProductEntry>>,
408-
HashMap<Pubkey, Arc<PriceEntry>>,
409-
)> {
411+
) -> Result<ProductAndPriceAccounts> {
410412
let mut product_entries = HashMap::new();
411413
let mut price_entries = HashMap::new();
412414

0 commit comments

Comments
 (0)