Add docs for validateRedactions

Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
Cnly 2019-08-01 12:33:05 +08:00
parent e9f824b958
commit 99859a8afc
2 changed files with 6 additions and 0 deletions

View file

@ -352,6 +352,9 @@ func (d *Database) fetchRedactionEvents(
return return
} }
// validateRedactions attempts to validate the given redactions.
// Returns redactions that are successfully validated.
// It will update the validation status in the database for the validated redactions.
func (d *Database) validateRedactions( func (d *Database) validateRedactions(
ctx context.Context, ctx context.Context,
unvalidatedRedactions redactedToRedactionMap, unvalidatedRedactions redactedToRedactionMap,

View file

@ -977,6 +977,9 @@ func (d *SyncServerDatasource) fetchRedactionEvents(
return return
} }
// validateRedactions attempts to validate the given redactions.
// Returns redactions that are successfully validated.
// It will update the validation status in the database for the validated redactions.
func (d *SyncServerDatasource) validateRedactions( func (d *SyncServerDatasource) validateRedactions(
ctx context.Context, ctx context.Context,
txn *sql.Tx, txn *sql.Tx,