@@ -127,9 +127,6 @@ def __init__(self, database: DatabasePool, db_conn, hs):
127127 self ._presence_id_gen = StreamIdGenerator (
128128 db_conn , "presence_stream" , "stream_id"
129129 )
130- self ._device_inbox_id_gen = StreamIdGenerator (
131- db_conn , "device_inbox" , "stream_id"
132- )
133130 self ._public_room_id_gen = StreamIdGenerator (
134131 db_conn , "public_room_list_stream" , "stream_id"
135132 )
@@ -189,36 +186,6 @@ def __init__(self, database: DatabasePool, db_conn, hs):
189186 prefilled_cache = presence_cache_prefill ,
190187 )
191188
192- max_device_inbox_id = self ._device_inbox_id_gen .get_current_token ()
193- device_inbox_prefill , min_device_inbox_id = self .db_pool .get_cache_dict (
194- db_conn ,
195- "device_inbox" ,
196- entity_column = "user_id" ,
197- stream_column = "stream_id" ,
198- max_value = max_device_inbox_id ,
199- limit = 1000 ,
200- )
201- self ._device_inbox_stream_cache = StreamChangeCache (
202- "DeviceInboxStreamChangeCache" ,
203- min_device_inbox_id ,
204- prefilled_cache = device_inbox_prefill ,
205- )
206- # The federation outbox and the local device inbox uses the same
207- # stream_id generator.
208- device_outbox_prefill , min_device_outbox_id = self .db_pool .get_cache_dict (
209- db_conn ,
210- "device_federation_outbox" ,
211- entity_column = "destination" ,
212- stream_column = "stream_id" ,
213- max_value = max_device_inbox_id ,
214- limit = 1000 ,
215- )
216- self ._device_federation_outbox_stream_cache = StreamChangeCache (
217- "DeviceFederationOutboxStreamChangeCache" ,
218- min_device_outbox_id ,
219- prefilled_cache = device_outbox_prefill ,
220- )
221-
222189 device_list_max = self ._device_list_id_gen .get_current_token ()
223190 self ._device_list_stream_cache = StreamChangeCache (
224191 "DeviceListStreamChangeCache" , device_list_max
0 commit comments