check db close error

This commit is contained in:
William Banfield
2022-01-06 18:50:02 -05:00
parent 13f7af1310
commit 5f93bd450c
+3 -1
View File
@@ -482,9 +482,11 @@ Next, we create a database handle and use it to construct our ABCI application:
if err != nil {
panic(err)
}
defer db.Close()
app := NewKVStoreApplication(db)
acc := abciclient.NewLocalCreator(app)
if err := db.Close(); err != nil {
log.Fatalf("Opening closing: %v", err)
}
...
```