Skip to content

Commit 1a7f639

Browse files
committed
fixup! fixup! *: add opt-in stream multiplexing support
1 parent 508c9dd commit 1a7f639

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

drpcmanager/frame_queue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ func TestSharedWriteBuf_WaitAndDrainCloseEmpty(t *testing.T) {
7979
// Close on empty buffer should return ok=false.
8080
sw.Close()
8181
<-done
82-
}
82+
}

drpcmanager/manager_mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,4 @@ func (m *MuxManager) NewServerStream(ctx context.Context) (stream *drpcstream.St
396396
}
397397
}
398398
}
399-
}
399+
}

drpcmanager/mux_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ func (sw *sharedWriteBuf) Close() {
107107
}
108108
sw.closed = true
109109
sw.cond.Broadcast()
110-
}
110+
}

drpcmanager/mux_writer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ func TestMuxWriter_WritePacketAfterClose(t *testing.T) {
7777

7878
err := w.WritePacket(drpcwire.Packet{})
7979
assert.Error(t, err)
80-
}
80+
}

drpcmanager/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ func (r *streamRegistry) Len() int {
8686
defer r.mu.RUnlock()
8787

8888
return len(r.streams)
89-
}
89+
}

drpcmanager/registry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ func TestStreamRegistry_ForEach_Empty(t *testing.T) {
133133
})
134134

135135
assert.Equal(t, count, 0)
136-
}
136+
}

drpcstream/pktbuf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ func (pb *syncPacketBuffer) Done() {
101101

102102
// Recycle is a no-op for syncPacketBuffer. Buffer lifetime is managed by
103103
// the manageReader goroutine that owns the underlying slice.
104-
func (pb *syncPacketBuffer) Recycle([]byte) {}
104+
func (pb *syncPacketBuffer) Recycle([]byte) {}

drpcstream/pktbuf_mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ func (pb *queuePacketBuffer) Recycle(buf []byte) {
113113
if buf != nil {
114114
recycleToPktBufPool(buf)
115115
}
116-
}
116+
}

0 commit comments

Comments
 (0)