添加延迟时间

This commit is contained in:
liyp 2024-04-21 17:22:36 +08:00
parent 53a41c81ff
commit ad6b907b82

View file

@ -97,6 +97,7 @@ 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)
} }
return 0, nil return 0, nil