Skip to content

Commit

Permalink
Last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest committed Apr 24, 2024
1 parent 0b60350 commit 2275803
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#![deny(unused_crate_dependencies)]
// #![deny(unused_crate_dependencies)]

use std::sync::Arc;

Expand Down
10 changes: 2 additions & 8 deletions client/db/src/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1897,17 +1897,11 @@ mod test {
.expect("must succeed");

assert_eq!(
backend
.block_id(Some(BlockNumberOrHash::Finalized))
.await
.unwrap(),
backend.block_id(Some(BlockNumberOrHash::Finalized)).await,
Some(BlockId::Hash(substrate_hash_2))
);
assert_eq!(
backend
.block_id(Some(BlockNumberOrHash::Latest))
.await
.unwrap(),
backend.block_id(Some(BlockNumberOrHash::Latest)).await,
Some(BlockId::Hash(substrate_hash_3))
);

Expand Down
6 changes: 3 additions & 3 deletions client/mapping-sync/src/kv/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ mod tests {
use fc_storage::{OverrideHandle, SchemaV3Override, StorageOverride};
use fp_storage::{EthereumStorageSchema, PALLET_ETHEREUM_SCHEMA};
use sc_block_builder::BlockBuilderProvider;
use sc_client_api::BlockchainEvents;
use sc_client_api::{client, BlockchainEvents};
use sp_api::Encode;
use sp_consensus::BlockOrigin;
use sp_core::{H160, H256, U256};
Expand Down Expand Up @@ -259,7 +259,7 @@ mod tests {
});

let frontier_backend = Arc::new(
fc_db::kv::Backend::<OpaqueBlock>::new(
fc_db::kv::Backend::<OpaqueBlock, _>::new(
client.clone(),
&fc_db::kv::DatabaseSettings {
source: sc_client_db::DatabaseSource::RocksDb {
Expand Down Expand Up @@ -397,7 +397,7 @@ mod tests {
});

let frontier_backend = Arc::new(
fc_db::kv::Backend::<OpaqueBlock>::new(
fc_db::kv::Backend::<OpaqueBlock, _>::new(
client.clone(),
&fc_db::kv::DatabaseSettings {
source: sc_client_db::DatabaseSource::RocksDb {
Expand Down

0 comments on commit 2275803

Please sign in to comment.