修改延迟

This commit is contained in:
liyp 2024-04-21 17:25:06 +08:00
parent ad6b907b82
commit 59408e0ba3

View file

@ -97,9 +97,9 @@ func fetchHistoryMessages(db *sql.DB, message_seq int, group_id int) (int, error
for _, message := range messages { for _, message := range messages {
messageMap := message.(map[string]interface{}) messageMap := message.(map[string]interface{})
insertMessage(db, messageMap) insertMessage(db, messageMap)
time.Sleep(time.Second * 1)
} }
time.Sleep(time.Second * 1)
return 0, nil return 0, nil
} }