fix lint issues

This commit is contained in:
6543 2023-02-09 21:39:37 +01:00
parent a656335a22
commit 1c5561231b
4 changed files with 21 additions and 15 deletions

View file

@ -74,8 +74,11 @@ func Serve(ctx *cli.Context) error {
}
// Init ssl cert database
certDB, err := openCertDB(ctx)
defer certDB.Close()
certDB, close, err := openCertDB(ctx)
if err != nil {
return err
}
defer close()
keyCache := cache.NewKeyValueCache()
challengeCache := cache.NewKeyValueCache()