feat(GODT-2801): Debug names for QueuedChannels

https://github.com/ProtonMail/gluon/pull/385
https://github.com/ProtonMail/go-proton-api/pull/90
This commit is contained in:
Leander Beernaert
2023-07-24 15:34:02 +02:00
parent 040ddadb7a
commit 776976a8a2
6 changed files with 35 additions and 15 deletions

View File

@ -305,7 +305,7 @@ func (t *testCtx) initFrontendClient() error {
return fmt.Errorf("could not start event stream: %w", err)
}
eventCh := async.NewQueuedChannel[*frontend.StreamEvent](0, 0, async.NoopPanicHandler{})
eventCh := async.NewQueuedChannel[*frontend.StreamEvent](0, 0, async.NoopPanicHandler{}, "test-frontend-client")
go func() {
defer eventCh.CloseAndDiscardQueued()