Skip to content

Commit

Permalink
chore(hermes): use stable rust toolchain in precommit formatter (#2103)
Browse files Browse the repository at this point in the history
* chore(hermes): formatting

* chore(hermes): use stable rust toolchain in precommit formatter
  • Loading branch information
tejasbadadare authored Nov 6, 2024
1 parent c3258d5 commit 02073a6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
- id: cargo-fmt-fortuna
name: Cargo format for Fortuna
language: "rust"
entry: cargo +nightly-2023-07-23 fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.82.0 fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --config-path rustfmt.toml
pass_filenames: false
files: apps/fortuna
- id: cargo-clippy-fortuna
Expand Down
28 changes: 23 additions & 5 deletions apps/hermes/server/src/api/rest/v2/sse.rs
Original file line number Diff line number Diff line change
@@ -1,27 +1,45 @@
use {
crate::{
api::{
rest::{validate_price_ids, RestError},
rest::{
validate_price_ids,
RestError,
},
types::{
BinaryUpdate, EncodingType, ParsedPriceUpdate, PriceIdInput, PriceUpdate,
BinaryUpdate,
EncodingType,
ParsedPriceUpdate,
PriceIdInput,
PriceUpdate,
RpcPriceIdentifier,
},
ApiState,
},
state::aggregate::{Aggregates, AggregationEvent, RequestTime},
state::aggregate::{
Aggregates,
AggregationEvent,
RequestTime,
},
},
anyhow::Result,
axum::{
extract::State,
response::sse::{Event, KeepAlive, Sse},
response::sse::{
Event,
KeepAlive,
Sse,
},
},
futures::Stream,
pyth_sdk::PriceIdentifier,
serde::Deserialize,
serde_qs::axum::QsQuery,
std::convert::Infallible,
tokio::sync::broadcast,
tokio_stream::{wrappers::BroadcastStream, StreamExt as _},
tokio_stream::{
wrappers::BroadcastStream,
StreamExt as _,
},
utoipa::IntoParams,
};

Expand Down

0 comments on commit 02073a6

Please sign in to comment.