diff --git a/src/matrix.rs b/src/matrix.rs index 10ea74d421b3f023528a4b7621df8e8c1d129b50..3769de0b994eb24b98ee86cc5c51ca918e977228 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -95,7 +95,6 @@ pub async fn connect_and_handle(config: Config) -> Result<()> { abort(); } }; - GLOBAL_PKG.lock().unwrap().push(pkg); let on_msg_room_event = |ev: SyncMessageEvent<MessageEventContent>, @@ -134,8 +133,8 @@ pub async fn connect_and_handle(config: Config) -> Result<()> { joined.send(msg, None).await.unwrap(); let elapsed_after_send = now.elapsed(); warn!( - "Elapsed before send {}ms, elapsed after send {}ms", - elapsed_before_send.as_millis(), + "Elapsed before send {}µs, elapsed after send {}ms", + elapsed_before_send.as_micros(), elapsed_after_send.as_millis() ); }