From 0789d615d4351b910ddac1aba78da5160d86f76c Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Mon, 15 Apr 2024 22:59:30 +0900 Subject: [PATCH] format (#1453) --- hermes/src/api.rs | 68 +++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/hermes/src/api.rs b/hermes/src/api.rs index 1dc4c70a..3c4ba4c7 100644 --- a/hermes/src/api.rs +++ b/hermes/src/api.rs @@ -95,40 +95,40 @@ pub async fn run(opts: RunOptions, state: ApiState) -> Result<()> { #[derive(OpenApi)] #[openapi( - paths( - rest::get_price_feed, - rest::get_vaa, - rest::get_vaa_ccip, - rest::latest_price_feeds, - rest::latest_vaas, - rest::price_feed_ids, - rest::latest_price_updates, - rest::timestamp_price_updates, - rest::price_feeds_metadata, - rest::price_stream_sse_handler, - ), - components( - schemas( - rest::GetVaaCcipInput, - rest::GetVaaCcipResponse, - rest::GetVaaResponse, - types::PriceIdInput, - types::RpcPrice, - types::RpcPriceFeed, - types::RpcPriceFeedMetadata, - types::RpcPriceIdentifier, - types::EncodingType, - types::PriceUpdate, - types::BinaryPriceUpdate, - types::ParsedPriceUpdate, - types::RpcPriceFeedMetadataV2, - types::PriceFeedMetadata, - types::AssetType - ) - ), - tags( - (name = "hermes", description = "Pyth Real-Time Pricing API") - ) + paths( + rest::get_price_feed, + rest::get_vaa, + rest::get_vaa_ccip, + rest::latest_price_feeds, + rest::latest_vaas, + rest::price_feed_ids, + rest::latest_price_updates, + rest::timestamp_price_updates, + rest::price_feeds_metadata, + rest::price_stream_sse_handler, + ), + components( + schemas( + rest::GetVaaCcipInput, + rest::GetVaaCcipResponse, + rest::GetVaaResponse, + types::PriceIdInput, + types::RpcPrice, + types::RpcPriceFeed, + types::RpcPriceFeedMetadata, + types::RpcPriceIdentifier, + types::EncodingType, + types::PriceUpdate, + types::BinaryPriceUpdate, + types::ParsedPriceUpdate, + types::RpcPriceFeedMetadataV2, + types::PriceFeedMetadata, + types::AssetType + ) + ), + tags( + (name = "hermes", description = "Pyth Real-Time Pricing API") + ) )] struct ApiDoc;