mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
rename var to be more descriptive
This commit is contained in:
parent
f8cb579187
commit
96e953e6e0
1 changed files with 2 additions and 2 deletions
|
|
@ -289,13 +289,13 @@ func (h *Handler) handleGetSchema(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// handleGetStatus handles GET /status requests.
|
||||
func (h *Handler) handleGetStatus(w http.ResponseWriter, r *http.Request) {
|
||||
status, err := h.API.Status(r.Context())
|
||||
pb, err := h.API.Status(r.Context())
|
||||
if err != nil {
|
||||
h.Logger.Printf("cluster status error: %s", err)
|
||||
return
|
||||
}
|
||||
|
||||
cs, ok := status.(*internal.ClusterStatus)
|
||||
cs, ok := pb.(*internal.ClusterStatus)
|
||||
if !ok {
|
||||
panic("status is not a status")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue