mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:44:52 -04:00
Give sensible names for '_simple_...' transactions
This commit is contained in:
parent
fce0114005
commit
dc0c989ef4
13 changed files with 93 additions and 38 deletions
|
@ -52,7 +52,8 @@ class RoomStore(SQLBaseStore):
|
|||
"room_id": room_id,
|
||||
"creator": room_creator_user_id,
|
||||
"is_public": is_public,
|
||||
}
|
||||
},
|
||||
desc="store_room",
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error("store_room with room_id=%s failed: %s", room_id, e)
|
||||
|
@ -70,6 +71,7 @@ class RoomStore(SQLBaseStore):
|
|||
table=RoomsTable.table_name,
|
||||
keyvalues={"room_id": room_id},
|
||||
retcols=RoomsTable.fields,
|
||||
desc="get_room",
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
@ -144,7 +146,7 @@ class RoomStore(SQLBaseStore):
|
|||
"event_id": event.event_id,
|
||||
"room_id": event.room_id,
|
||||
"topic": event.content["topic"],
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
def _store_room_name_txn(self, txn, event):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue