1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-20 07:48:06 +02:00
This commit is contained in:
Kazuyuki Ono 2023-03-14 03:51:53 +00:00
parent f678951893
commit 3a51851f8e

View file

@ -79,11 +79,11 @@ func prepare() error {
return err
}
for i := 0; i < 10; i++ {
for i := 0; i < 5; i++ {
if _, err := db.Exec("INSERT INTO blog (title) VALUES (?);", fmt.Sprintf("Blog post #%d", i)); err != nil {
log.Print(fmt.Sprintf("Blog post #%d", i))
return err
}
log.Print("Blog post ", i)
}
return nil
}