avoid duplicate mutex locking when reading data

This commit is contained in:
Marten Seemann
2020-11-09 09:15:21 +07:00
parent 5352cd509b
commit 655632b116
5 changed files with 22 additions and 30 deletions

View File

@@ -43,7 +43,7 @@ var _ = Describe("Stream Flow controller", func() {
Expect(fc.sendWindow).To(Equal(sendWindow))
})
It("queues window updates with the correction stream ID", func() {
It("queues window updates with the correct stream ID", func() {
var queued bool
queueWindowUpdate := func(id protocol.StreamID) {
Expect(id).To(Equal(protocol.StreamID(5)))