Skip to content

Commit

Permalink
add todo comment for buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed May 14, 2024
1 parent 0f5ca8e commit 3fcd62f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/web/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (a *AlloyAPI) startDebugStream() http.HandlerFunc {
componentID := vars["id"]

// Buffer of 1000 entries to handle load spikes and prevent this functionality from eating up too much memory.
// TODO: in the future we may want to make this value configurable to handle heavy load
dataCh := make(chan string, 1000)
ctx := r.Context()

Expand Down

0 comments on commit 3fcd62f

Please sign in to comment.