Skip to content

Commit 413b12a

Browse files
committed
refactor: Rename emit_end_call_if_unaccepted() to finalize_call_if_unaccepted()
1 parent f2a82d8 commit 413b12a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/calls.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl Context {
220220

221221
let wait = RINGING_SECONDS;
222222
let context = self.get_weak_context();
223-
task::spawn(Context::emit_end_call_if_unaccepted(
223+
task::spawn(Context::finalize_call_if_unaccepted(
224224
context,
225225
wait.try_into()?,
226226
call.id,
@@ -314,7 +314,7 @@ impl Context {
314314
Ok(())
315315
}
316316

317-
async fn emit_end_call_if_unaccepted(
317+
async fn finalize_call_if_unaccepted(
318318
context: WeakContext,
319319
wait: u64,
320320
call_id: MsgId,
@@ -325,7 +325,7 @@ impl Context {
325325
let Some(mut call) = context.load_call_by_id(call_id).await? else {
326326
warn!(
327327
context,
328-
"emit_end_call_if_unaccepted is called with {call_id} which does not refer to a call."
328+
"finalize_call_if_unaccepted is called with {call_id} which does not refer to a call."
329329
);
330330
return Ok(());
331331
};
@@ -408,7 +408,7 @@ impl Context {
408408
if !call.is_stale() {
409409
let wait = call.remaining_ring_seconds();
410410
let context = self.get_weak_context();
411-
task::spawn(Context::emit_end_call_if_unaccepted(
411+
task::spawn(Context::finalize_call_if_unaccepted(
412412
context,
413413
wait.try_into()?,
414414
call.msg.id,

0 commit comments

Comments
 (0)