Ask origin only for missing things for now

This commit is contained in:
Neil Alexander 2021-06-28 13:15:59 +01:00
parent 8fd878c75a
commit 9f2de8a29c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -486,14 +486,16 @@ func (t *txnReq) getServers(ctx context.Context, roomID string) []gomatrixserver
return t.servers return t.servers
} }
t.servers = []gomatrixserverlib.ServerName{t.Origin} t.servers = []gomatrixserverlib.ServerName{t.Origin}
serverReq := &api.QueryServerJoinedToRoomRequest{ /*
RoomID: roomID, serverReq := &api.QueryServerJoinedToRoomRequest{
} RoomID: roomID,
serverRes := &api.QueryServerJoinedToRoomResponse{} }
if err := t.rsAPI.QueryServerJoinedToRoom(ctx, serverReq, serverRes); err == nil { serverRes := &api.QueryServerJoinedToRoomResponse{}
t.servers = append(t.servers, serverRes.ServerNames...) if err := t.rsAPI.QueryServerJoinedToRoom(ctx, serverReq, serverRes); err == nil {
util.GetLogger(ctx).Infof("Found %d server(s) to query for missing events in %q", len(t.servers), roomID) t.servers = append(t.servers, serverRes.ServerNames...)
} util.GetLogger(ctx).Infof("Found %d server(s) to query for missing events in %q", len(t.servers), roomID)
}
*/
return t.servers return t.servers
} }