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(