Skip to content

Commit

Permalink
fix(GODT-1570): Use buffered channel for responses
Browse files Browse the repository at this point in the history
Allow a maximum of 100 response items to be written into the response
channel before it blocks.
  • Loading branch information
LBeernaertProton committed Aug 24, 2022
1 parent 9f950d6 commit 6b474c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/session/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func (s *Session) handleOther(ctx context.Context, tag string, cmd *proto.Command, profiler profiling.CmdProfiler) chan response.Response {
ch := make(chan response.Response)
ch := make(chan response.Response, 100)

go func() {
labels := pprof.Labels("go", "handleOther()", "SessionID", strconv.Itoa(s.sessionID))
Expand Down

0 comments on commit 6b474c8

Please sign in to comment.