mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Ask origin only for missing things for now
This commit is contained in:
parent
8fd878c75a
commit
9f2de8a29c
1 changed files with 10 additions and 8 deletions
|
@ -486,6 +486,7 @@ 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,
|
||||||
}
|
}
|
||||||
|
@ -494,6 +495,7 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue