Dont log regex parse times
The regex parsing is extremely fast (about 2-3 microseconds) and logging this info would leave a detailed timing summary of message events in the logs which is undesirable.
This commit is contained in:
parent
9f334e1836
commit
6ac533233f
1 changed files with 0 additions and 2 deletions
|
@ -120,8 +120,6 @@ pub async fn embed_handler(event: OriginalSyncRoomMessageEvent, room: Room, clie
|
||||||
};
|
};
|
||||||
|
|
||||||
let urls = get_urls_from_message(&text_content.body);
|
let urls = get_urls_from_message(&text_content.body);
|
||||||
warn!("Ran fn get_urls_from_message after: '{:#?}'", fn_start.elapsed());
|
|
||||||
|
|
||||||
let reqwest_client = reqwest::Client::builder().user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36").build().unwrap();
|
let reqwest_client = reqwest::Client::builder().user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36").build().unwrap();
|
||||||
|
|
||||||
for url in urls {
|
for url in urls {
|
||||||
|
|
Loading…
Reference in a new issue