forked from lavina/lavina
Add tracing info
This commit is contained in:
parent
85c8d03f54
commit
8dff974df8
|
@ -130,6 +130,7 @@ impl<'a> XmppConnection<'a> {
|
||||||
<body></body>
|
<body></body>
|
||||||
</message>
|
</message>
|
||||||
*/
|
*/
|
||||||
|
#[tracing::instrument(skip(self), name = "XmppConnection::retrieve_message_history")]
|
||||||
async fn retrieve_message_history(&self, room_name: &Name) -> Result<(Vec<XmppHistoryMessage>)> {
|
async fn retrieve_message_history(&self, room_name: &Name) -> Result<(Vec<XmppHistoryMessage>)> {
|
||||||
let room_id = RoomId::try_from(room_name.0.clone())?;
|
let room_id = RoomId::try_from(room_name.0.clone())?;
|
||||||
let history_messages = self.user_handle.get_room_message_history(room_id).await?;
|
let history_messages = self.user_handle.get_room_message_history(room_id).await?;
|
||||||
|
|
Loading…
Reference in New Issue