Prefer /state_ids when missing state across federation (#1008)

* Prefer /state_ids when missing state across federation

* Linting

* Better logging
This commit is contained in:
Kegsay 2020-05-05 15:48:37 +01:00 committed by GitHub
parent 9d15312ef6
commit 31d3b0d4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 126 additions and 12 deletions

View file

@ -54,7 +54,7 @@ func (c *RoomserverProducer) SendEvents(
// SendEventWithState writes an event with KindNew to the roomserver input log
// with the state at the event as KindOutlier before it.
func (c *RoomserverProducer) SendEventWithState(
ctx context.Context, state gomatrixserverlib.RespState, event gomatrixserverlib.HeaderedEvent,
ctx context.Context, state *gomatrixserverlib.RespState, event gomatrixserverlib.HeaderedEvent,
) error {
outliers, err := state.Events()
if err != nil {