auth-server: Use admin auth to proxy relayer requests #217
Annotations
2 errors and 6 warnings
unused `async` for function with no await statements:
price-reporter/src/main.rs#L94
error: unused `async` for function with no await statements
--> price-reporter/src/main.rs:94:1
|
94 | / async fn init_default_price_streams(
95 | | global_price_streams: &GlobalPriceStreams,
96 | | config: ExchangeConnectionsConfig,
97 | | ) -> Result<(), ServerError> {
... |
122 | | Ok(())
123 | | }
| |_^
|
= help: consider removing the `async` from this function
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
= note: requested on the command line with `-D clippy::unused-async`
|
`std::result::Result<(), ApiError>` is not a future:
auth/auth-server/src/server/mod.rs#L87
error[E0277]: `std::result::Result<(), ApiError>` is not a future
--> auth/auth-server/src/server/mod.rs:87:60
|
87 | self.admin_authenticate(path, &mut headers, &body).await?;
| -^^^^^
| ||
| |`std::result::Result<(), ApiError>` is not a future
| help: remove the `.await`
|
= help: the trait `warp::Future` is not implemented for `std::result::Result<(), ApiError>`, which is required by `std::result::Result<(), ApiError>: std::future::IntoFuture`
= note: std::result::Result<(), ApiError> must be a future or must implement `IntoFuture` to be awaited
= note: required for `std::result::Result<(), ApiError>` to implement `std::future::IntoFuture`
|
format
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
format
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|