From 1b4fc3728f99a996ece7f82c5eafadb97cb1c870 Mon Sep 17 00:00:00 2001 From: Lukas <77849373+qwqtoday@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:29:04 +0800 Subject: [PATCH] make the explainitation better Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com> --- syncapi/storage/tables/interface.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/tables/interface.go b/syncapi/storage/tables/interface.go index 5470349a0b..14105a15ad 100644 --- a/syncapi/storage/tables/interface.go +++ b/syncapi/storage/tables/interface.go @@ -235,8 +235,8 @@ type Relations interface { // will be returned, inclusive of the "to" position but excluding the "from" position. The stream // position returned is the maximum position of the returned results. SelectRelationsInRange(ctx context.Context, txn *sql.Tx, roomID, eventID, relType, eventType string, r types.Range, limit int) (map[string][]types.RelationEntry, types.StreamPosition, error) - // SelectThreads this will find some threads from a room - // if userID is not empty then it will only include the threads that the user has participated + // SelectThreads will find threads from a room, if userID is not empty + // then it will only include the threads that the user has participated in. SelectThreads(ctx context.Context, txn *sql.Tx, roomID, userID string, from types.StreamPosition, limit uint64) ([]string, types.StreamPosition, error) // SelectMaxRelationID returns the maximum ID of all relations, used to determine what the boundaries // should be if there are no boundaries supplied (i.e. we want to work backwards but don't have a