mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-27 19:37:08 +00:00
check db close error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user