change default wait time
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user