Add a NOTSPEC to common/events.go

This commit is contained in:
Neil Alexander 2020-04-03 15:45:39 +01:00
parent 90062a3d0d
commit fa928be0b8

View file

@ -127,8 +127,8 @@ func AddPrevEventsToEvent(
// truncateAuthAndPrevEvents limits the number of events we add into // truncateAuthAndPrevEvents limits the number of events we add into
// an event as prev_events or auth_events. // an event as prev_events or auth_events.
// The limits here feel a bit arbitrary but they are currently here // NOTSPEC: The limits here feel a bit arbitrary but they are currently
// because of https://github.com/matrix-org/matrix-doc/issues/2307 // here because of https://github.com/matrix-org/matrix-doc/issues/2307
// and because Synapse will just drop events that don't comply. // and because Synapse will just drop events that don't comply.
func truncateAuthAndPrevEvents(auth, prev []gomatrixserverlib.EventReference) ( func truncateAuthAndPrevEvents(auth, prev []gomatrixserverlib.EventReference) (
truncAuth, truncPrev []gomatrixserverlib.EventReference, truncAuth, truncPrev []gomatrixserverlib.EventReference,