0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-05-20 06:13:48 +02:00

Restore the room version cache in the roomserver internal API HTTP client

This commit is contained in:
Neil Alexander 2022-08-11 17:34:09 +01:00
parent 05cafbd197
commit a01af55ec6
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -425,10 +425,14 @@ func (h *httpRoomserverInternalAPI) QueryRoomVersionForRoom(
response.RoomVersion = roomVersion
return nil
}
return httputil.CallInternalRPCAPI(
err := httputil.CallInternalRPCAPI(
"QueryRoomVersionForRoom", h.roomserverURL+RoomserverQueryRoomVersionForRoomPath,
h.httpClient, ctx, request, response,
)
if err == nil {
h.cache.StoreRoomVersion(request.RoomID, response.RoomVersion)
}
return err
}
func (h *httpRoomserverInternalAPI) QueryCurrentState(