aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/input_latest_events.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/internal/input_latest_events.go')
-rw-r--r--roomserver/internal/input_latest_events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/internal/input_latest_events.go b/roomserver/internal/input_latest_events.go
index e69307ad..66316ac4 100644
--- a/roomserver/internal/input_latest_events.go
+++ b/roomserver/internal/input_latest_events.go
@@ -21,7 +21,7 @@ import (
"context"
"fmt"
- "github.com/matrix-org/dendrite/internal"
+ "github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/state"
"github.com/matrix-org/dendrite/roomserver/types"
@@ -60,7 +60,7 @@ func (r *RoomserverInternalAPI) updateLatestEvents(
}
succeeded := false
defer func() {
- txerr := internal.EndTransaction(updater, &succeeded)
+ txerr := sqlutil.EndTransaction(updater, &succeeded)
if err == nil && txerr != nil {
err = txerr
}