From 3aee402a38a9da5493b7e05b782c41cf8ae5d9cf Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Tue, 18 Jun 2024 11:25:38 +0100 Subject: [PATCH] ibid --- crates/bft-json-crdt/src/json_crdt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bft-json-crdt/src/json_crdt.rs b/crates/bft-json-crdt/src/json_crdt.rs index 087323c..4f3648b 100644 --- a/crates/bft-json-crdt/src/json_crdt.rs +++ b/crates/bft-json-crdt/src/json_crdt.rs @@ -21,7 +21,7 @@ use fastcrypto::{ // object field order in JSON objects. However, the hash check impl in bft-json-crdt does take order // into account. This is going to cause problems later for non-Rust implementations, BFT hash checking // currently depends on JSON serialization/deserialization object order. This shouldn't be the case -// but I've hacked it for the moment to get the PoC working. To see the problem, replace this with +// but I've hacked in an IndexMap for the moment to get the PoC working. To see the problem, replace this with // a std HashMap, everything will screw up (annoyingly, only *most* of the time). use indexmap::IndexMap; use serde::{Deserialize, Serialize};