Skip to content

Commit

Permalink
add more debug info and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
4t145 committed Oct 19, 2023
1 parent f9093ad commit 15de3c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions support/reach/src/task/message_send_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl MessageSendListener {
&ctx,
cfg.invoke.module_urls.get("iam").expect("missing iam base url"),
));
// if not pending status, this task may be excuted by other nodes, just return
if !ReachMessageServ::update_status(&message.id, ReachStatusKind::Pending, ReachStatusKind::Sending, &self.funs, &ctx).await? {
return Ok(());
}
Expand All @@ -55,6 +56,8 @@ impl MessageSendListener {
continue;
};
to.insert(phone);
} else {
log::warn!("[Reach] iam get account info error, account_id: {account_id}")
}
}
match self.channel.send(message.rel_reach_channel, &template, &content_replace, &to).await {
Expand Down

0 comments on commit 15de3c6

Please sign in to comment.