aboutsummaryrefslogtreecommitdiff
path: root/internal/eventutil
diff options
context:
space:
mode:
authorkegsay <kegan@matrix.org>2022-05-05 13:17:38 +0100
committerGitHub <noreply@github.com>2022-05-05 13:17:38 +0100
commit506de4bb3d69fef27e60d09d06712a72e588a198 (patch)
treec2e7c0fd25b047cde8e597f9e675ba45a0fe5bab /internal/eventutil
parentd9e71b93b68efb57582d02448883b8a1259205e8 (diff)
Define component interfaces based on consumers (1/2) (#2423)
* Specify interfaces used by appservice, do half of clientapi * convert more deps of clientapi to finer-grained interfaces * Convert mediaapi and rest of clientapi * Somehow this got missed
Diffstat (limited to 'internal/eventutil')
-rw-r--r--internal/eventutil/events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/eventutil/events.go b/internal/eventutil/events.go
index 47c83d51..ee67a6da 100644
--- a/internal/eventutil/events.go
+++ b/internal/eventutil/events.go
@@ -39,7 +39,7 @@ var ErrRoomNoExists = errors.New("room does not exist")
func QueryAndBuildEvent(
ctx context.Context,
builder *gomatrixserverlib.EventBuilder, cfg *config.Global, evTime time.Time,
- rsAPI api.RoomserverInternalAPI, queryRes *api.QueryLatestEventsAndStateResponse,
+ rsAPI api.QueryLatestEventsAndStateAPI, queryRes *api.QueryLatestEventsAndStateResponse,
) (*gomatrixserverlib.HeaderedEvent, error) {
if queryRes == nil {
queryRes = &api.QueryLatestEventsAndStateResponse{}
@@ -80,7 +80,7 @@ func BuildEvent(
func queryRequiredEventsForBuilder(
ctx context.Context,
builder *gomatrixserverlib.EventBuilder,
- rsAPI api.RoomserverInternalAPI, queryRes *api.QueryLatestEventsAndStateResponse,
+ rsAPI api.QueryLatestEventsAndStateAPI, queryRes *api.QueryLatestEventsAndStateResponse,
) (*gomatrixserverlib.StateNeeded, error) {
eventsNeeded, err := gomatrixserverlib.StateNeededForEventBuilder(builder)
if err != nil {