Skip to content

Commit

Permalink
minor mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Nov 22, 2024
1 parent ab2a4ea commit 996facc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions indexer/gateway/status.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package gateway

import (
"context"
"fmt"
"net/http"
"strconv"
Expand Down Expand Up @@ -50,7 +49,7 @@ func getNodeStatus(c *gin.Context) {

var finalStatus *node.Status
for _, client := range clients {
status, err := client.GetStatus(context.Background())
status, err := client.GetStatus(c)
if err != nil {
c.JSON(http.StatusInternalServerError, fmt.Sprintf("Failed to retrieve node status: %v", err))
}
Expand Down

0 comments on commit 996facc

Please sign in to comment.