Rename "Close" to "ShutDown"

This commit is contained in:
Zoltán Papp
2024-08-21 16:17:39 +02:00
parent a208e7999c
commit c1a54756e8
8 changed files with 28 additions and 28 deletions

View File

@@ -179,7 +179,7 @@ func execute(cmd *cobra.Command, args []string) error {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
err = srv.Close(ctx)
err = srv.Shutdown(ctx)
if err != nil {
return fmt.Errorf("failed to close server: %s", err)
}