File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ pub(crate) async fn should_send_statistics(context: &Context) -> Result<bool> {
196
196
async fn send_statistics ( context : & Context ) -> Result < ChatId > {
197
197
info ! ( context, "Sending statistics." ) ;
198
198
199
- let chat_id = get_statistics_bot ( context) . await ?;
199
+ let chat_id = get_statistics_chat_id ( context) . await ?;
200
200
201
201
let mut msg = Message :: new ( Viewtype :: File ) ;
202
202
msg. set_text (
@@ -320,7 +320,7 @@ async fn get_statistics(context: &Context) -> Result<String> {
320
320
Ok ( serde_json:: to_string_pretty ( & statistics) ?)
321
321
}
322
322
323
- async fn get_statistics_bot ( context : & Context ) -> Result < ChatId , anyhow:: Error > {
323
+ async fn get_statistics_chat_id ( context : & Context ) -> Result < ChatId , anyhow:: Error > {
324
324
let contact_id: ContactId = * import_vcard ( context, STATISTICS_BOT_VCARD )
325
325
. await ?
326
326
. first ( )
@@ -465,7 +465,7 @@ async fn get_message_stats(
465
465
"Last_msgid < 9 would mean including 'special' messages in the statistics"
466
466
) ;
467
467
468
- let statistics_bot_chat_id = get_statistics_bot ( context) . await ?;
468
+ let statistics_bot_chat_id = get_statistics_chat_id ( context) . await ?;
469
469
470
470
let trans_fn = |t : & mut rusqlite:: Transaction | {
471
471
t. pragma_update ( None , "query_only" , "0" ) ?;
You can’t perform that action at this time.
0 commit comments