diff --git a/.github/workflows/diesel.yml b/.github/workflows/diesel.yml index e15b6bf..e1b3d95 100644 --- a/.github/workflows/diesel.yml +++ b/.github/workflows/diesel.yml @@ -12,7 +12,7 @@ env: RUSTC_WRAPPER: "sccache" jobs: - unit_test: + check_schema: runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9306418..3ec1ca9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,5 @@ -name: Clippy check +name: Clippy on: - push: - branches: ["main"] pull_request: branches: ["main"] diff --git a/apps/api/src/node_client.rs b/apps/api/src/node_client.rs index 1a98c20..62166a1 100644 --- a/apps/api/src/node_client.rs +++ b/apps/api/src/node_client.rs @@ -2,6 +2,7 @@ use primitives::node::{ChainNodes, Node, NodeStatus, NodesResponse}; use std::{collections::HashMap, error::Error}; use storage::DatabaseClient; +#[allow(dead_code)] pub struct Client { database: DatabaseClient, } @@ -11,6 +12,7 @@ impl Client { Self { database } } + #[allow(dead_code)] pub async fn get_nodes(&mut self) -> Result> { let nodes = self.database.get_nodes()?; let version = self.database.get_nodes_version()?;