fix: cleanup of gRPC conn is done based on the context

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
This commit is contained in:
Matthias Riegler
2023-10-03 00:12:59 +02:00
parent 0170f70cc0
commit 5129bf6b33

View File

@@ -90,11 +90,6 @@ var rootCmd = &cobra.Command{
)
return nil
},
// Ensure we're closing the grpc connection on exit
PersistentPostRunE: func(cmd *cobra.Command, _ []string) error {
return grpcConnFromContext(cmd.Context()).Close()
},
}
func main() {