Skip to content

Commit

Permalink
refactor(hermes): move docs_examples inside api
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Oct 19, 2023
1 parent 65e2199 commit cefdd84
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions hermes/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use {
utoipa_swagger_ui::SwaggerUi,
};

mod doc_examples;
mod metrics_middleware;
mod rest;
mod types;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hermes/src/api/rest/get_price_feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ use {
UnixTimestamp,
},
api::{
doc_examples,
rest::RestError,
types::{
PriceIdInput,
RpcPriceFeed,
},
},
doc_examples,
},
anyhow::Result,
axum::{
Expand Down
2 changes: 1 addition & 1 deletion hermes/src/api/rest/get_vaa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use {
UnixTimestamp,
},
api::{
doc_examples,
rest::RestError,
types::PriceIdInput,
},
doc_examples,
},
anyhow::Result,
axum::{
Expand Down
2 changes: 1 addition & 1 deletion hermes/src/api/rest/latest_vaas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use {
crate::{
aggregate::RequestTime,
api::{
doc_examples,
rest::RestError,
types::PriceIdInput,
},
doc_examples,
},
anyhow::Result,
axum::{
Expand Down
12 changes: 5 additions & 7 deletions hermes/src/api/types.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
use {
crate::{
aggregate::{
PriceFeedUpdate,
Slot,
UnixTimestamp,
},
doc_examples,
super::doc_examples,
crate::aggregate::{
PriceFeedUpdate,
Slot,
UnixTimestamp,
},
base64::{
engine::general_purpose::STANDARD as base64_standard_engine,
Expand Down
1 change: 0 additions & 1 deletion hermes/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use {
mod aggregate;
mod api;
mod config;
mod doc_examples;
mod network;
mod serde;
mod state;
Expand Down
Empty file added hermes/src/metrics_server.rs
Empty file.

0 comments on commit cefdd84

Please sign in to comment.