Skip to content

Commit

Permalink
We don't need to check if there are saved streams as that is in a DB …
Browse files Browse the repository at this point in the history
…and not the cache
  • Loading branch information
COMTOP1 committed Feb 17, 2024
1 parent 63838dd commit 60a875c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions server/views/activeStreamCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ func (v *Views) ActiveStreamsFunc(c echo.Context) error {
}
}

stored, err := v.store.GetStored()
if err != nil {
return &echo.HTTPError{
Code: http.StatusInternalServerError,
Message: fmt.Errorf("failed to get stored streams: %w", err),
Internal: fmt.Errorf("failed to get stored streams: %w", err),
}
}
//stored, err := v.store.GetStored()
//if err != nil {
// return &echo.HTTPError{
// Code: http.StatusInternalServerError,
// Message: fmt.Errorf("failed to get stored streams: %w", err),
// Internal: fmt.Errorf("failed to get stored streams: %w", err),
// }
//}

data := struct {
Streams int `json:"streams"`
}{
Streams: len(streams) + len(stored),
Streams: len(streams), /* + len(stored)*/
}

return c.JSON(http.StatusOK, data)
Expand Down

0 comments on commit 60a875c

Please sign in to comment.