Restore the getServers RS query (needs optimisation)

main
Neil Alexander 2021-06-29 09:37:28 +01:00
parent 4417f24678
commit f645646ca9
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 8 additions and 10 deletions

View File

@ -486,7 +486,6 @@ 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{ serverReq := &api.QueryServerJoinedToRoomRequest{
RoomID: roomID, RoomID: roomID,
} }
@ -495,7 +494,6 @@ func (t *txnReq) getServers(ctx context.Context, roomID string) []gomatrixserver
t.servers = append(t.servers, serverRes.ServerNames...) 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) 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
} }