change default wait time

This commit is contained in:
fengzhiqiang
2020-12-23 11:10:06 +08:00
parent a44a58296e
commit 18e923ef82
+2 -2
View File
@@ -60,9 +60,9 @@ func InitDb(file string, init bool) error {
func InsertTelegram(teleString string) {
count := 0
for isWriting && count < 5 {
for isWriting && count < 10 {
log.Println("waiting for write ")
time.Sleep(3 * time.Second)
time.Sleep(5 * time.Second)
count++
}
if count >= 5 {