mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-21 17:45:43 +02:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user