wrap cert db and make sync gracefull

This commit is contained in:
6543 2021-12-05 17:42:53 +01:00
parent 11fa729686
commit de439f9bec
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
7 changed files with 95 additions and 14 deletions

View file

@ -35,7 +35,7 @@ func certs(ctx *cli.Context) error {
panic(err)
}
}
if err := keyDatabase.Sync(); err != nil {
if err := keyDatabase.Close(); err != nil {
panic(err)
}
os.Exit(0)