Other: Stop gRPC server on crash

This commit is contained in:
James Houlahan
2022-11-22 12:59:07 +01:00
committed by Leander Beernaert
parent f954f89747
commit 6bd8c6ceb6
6 changed files with 41 additions and 6 deletions

View File

@ -34,6 +34,7 @@ import (
func WithVault(locations *locations.Locations, fn func(*vault.Vault, bool, bool) error) error {
logrus.Debug("Creating vault")
defer logrus.Debug("Vault stopped")
// Create the encVault.
encVault, insecure, corrupt, err := newVault(locations)