aboutsummaryrefslogtreecommitdiff
path: root/roomserver/roomserver.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-02-24 09:40:20 +0100
committerGitHub <noreply@github.com>2023-02-24 09:40:20 +0100
commitad07b169b8a58b5a843b7b19ff0a989399d0aea0 (patch)
tree8904e5e52ecec90aa94f748c10a08b08cdf01de1 /roomserver/roomserver.go
parente6aa0955ff4113114ff8f30073582cc4ecc454fa (diff)
Refactor `StoreEvent` and create a new `RoomDatabase` interface (#2985)
This PR changes a few things: - It pulls out the creation of several NIDs from the `StoreEvent` function to make the functions more reusable - Uses more caching when using those NIDs to avoid DB round trips
Diffstat (limited to 'roomserver/roomserver.go')
-rw-r--r--roomserver/roomserver.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/roomserver/roomserver.go b/roomserver/roomserver.go
index c5c51b25..5a8d8b57 100644
--- a/roomserver/roomserver.go
+++ b/roomserver/roomserver.go
@@ -23,8 +23,7 @@ import (
"github.com/matrix-org/dendrite/setup/base"
)
-// NewInternalAPI returns a concerete implementation of the internal API. Callers
-// can call functions directly on the returned API or via an HTTP interface using AddInternalRoutes.
+// NewInternalAPI returns a concrete implementation of the internal API.
func NewInternalAPI(
base *base.BaseDendrite,
) api.RoomserverInternalAPI {