From c7a2af97eb65f17ac686771f9fa67185ce918b26 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 7 Feb 2017 13:42:27 +0000 Subject: [PATCH] More comments --- .../matrix-org/dendrite/roomserver/storage/storage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go b/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go index 5ba0312cf..41fa25eab 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/storage.go @@ -56,6 +56,8 @@ func (d *Database) StoreEvent(event gomatrixserverlib.Event) error { } eventStateKey := event.StateKey() + // Assigned a numeric ID for the state_key if there is one present. + // Otherwise set the numeric ID for the state_key to 0. if eventStateKey != nil { if eventStateKeyNID, err = d.assignStateKeyNID(*eventStateKey); err != nil { return err