mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 01:36:46 +00:00
Rename "Close" to "ShutDown"
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user