添加延迟时间
This commit is contained in:
parent
53a41c81ff
commit
ad6b907b82
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue