Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ling Samuel (WSL) <[email protected]>
  • Loading branch information
lingsamuel committed Oct 19, 2023
1 parent 99adbdf commit e61d62d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ func newPingCmd() *cobra.Command {
return cmd
}

func readBody(r io.ReadCloser) (string, error) {
defer r.Close()

data, err := io.ReadAll(r)
if err != nil {
return "", err
}
return string(data), nil
}

// pingAPISIX check the connection to the APISIX
func pingAPISIX() error {
cluster, err := apisix.NewCluster(context.Background(), rootConfig.ClientConfig)
Expand Down

0 comments on commit e61d62d

Please sign in to comment.