feat: Mise en place de cronjob fonctionne avec une logique concour qui fonctionne
This commit is contained in:
parent
0e4a8ae580
commit
1840bf771c
@ -226,9 +226,8 @@ impl ScheduleJob {
|
||||
if messages.last().unwrap().id != last_id {
|
||||
info!("Fetching more messages because last one is not the last id");
|
||||
loop {
|
||||
let message_pagination = MessagePagination::After(
|
||||
messages.last().unwrap().id.into(),
|
||||
);
|
||||
let message_pagination =
|
||||
MessagePagination::After(messages.last().unwrap().id);
|
||||
let mut new_messages = match http
|
||||
.get_messages(
|
||||
channel_id.into(),
|
||||
|
Loading…
Reference in New Issue
Block a user