From dca71f76eea9f1378a54e96e5fc98d71dfbf5dde Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Sun, 13 Dec 2020 09:12:14 -0500 Subject: [PATCH] Update readme example Option -> String --- README.md | 2 +- tests/state_res.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index d6f4df8a..91f28152 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ struct StateEvent { } /// A mapping of event type and state_key to some value `T`, usually an `EventId`. -pub type StateMap = BTreeMap<(EventType, Option), T>; +pub type StateMap = BTreeMap<(EventType, String), T>; /// A mapping of `EventId` to `T`, usually a `StateEvent`. pub type EventMap = BTreeMap; diff --git a/tests/state_res.rs b/tests/state_res.rs index 7b8110dd..00efa3a4 100644 --- a/tests/state_res.rs +++ b/tests/state_res.rs @@ -429,10 +429,6 @@ fn do_check( // we have to update our store, an actual user of this lib would // be giving us state from a DB. - // - // TODO - // TODO we need to convert the `StateResolution::resolve` to use the event_map - // because the user of this crate cannot update their DB's state. store.0.insert(ev_id.clone(), Arc::clone(&event)); state_at_event.insert(node, state_after);