rename the Session to Connection

This commit is contained in:
Marten Seemann 2022-03-26 14:35:01 +01:00
parent 42f3159497
commit e71c236232
19 changed files with 73 additions and 73 deletions

View file

@ -7,7 +7,7 @@ import (
"net"
"sync"
quic "github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/internal/protocol"
. "github.com/onsi/ginkgo"
@ -39,7 +39,7 @@ var _ = Describe("Unidirectional Streams", func() {
return GeneratePRData(10 * int(id))
}
runSendingPeer := func(sess quic.Session) {
runSendingPeer := func(sess quic.Connection) {
for i := 0; i < numStreams; i++ {
str, err := sess.OpenUniStreamSync(context.Background())
Expect(err).ToNot(HaveOccurred())
@ -52,7 +52,7 @@ var _ = Describe("Unidirectional Streams", func() {
}
}
runReceivingPeer := func(sess quic.Session) {
runReceivingPeer := func(sess quic.Connection) {
var wg sync.WaitGroup
wg.Add(numStreams)
for i := 0; i < numStreams; i++ {