Skip to content

Commit 1bcc5b5

Browse files
committed
fixup: Fix failing mongodb indexes on startup
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 2a84929 commit 1bcc5b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

api/pubsub_mongo.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,11 @@ async def _ensure_indexes(self):
193193
# Migration handles dropping the old index first.
194194
await event_col.create_index(
195195
'timestamp',
196-
expireAfterSeconds=604800,
197-
name='ttl_timestamp'
196+
expireAfterSeconds=604800
198197
)
199198
# Compound index for efficient pub/sub catch-up queries
200199
await event_col.create_index(
201-
[('channel', ASCENDING), ('sequence_id', ASCENDING)],
202-
name='channel_sequence_id'
200+
[('channel', ASCENDING), ('sequence_id', ASCENDING)]
203201
)
204202
# Compound index for filtered event queries (kind + timestamp)
205203
await event_col.create_index(

0 commit comments

Comments
 (0)