Skip to content

Commit 35dd208

Browse files
authored
fix: Incorrect spelling of "offerer" in peer (#154)
🤦🤦🤦🤦🤦
1 parent d76737b commit 35dd208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

peer/conn.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp
6565
pingEchoChannelID: 2,
6666
opts: opts,
6767
rtc: rtc,
68-
offerrer: client,
68+
offerer: client,
6969
closed: make(chan struct{}),
7070
closedRTC: make(chan struct{}),
7171
closedICE: make(chan struct{}),
@@ -103,7 +103,7 @@ type Conn struct {
103103
rtc *webrtc.PeerConnection
104104
opts *ConnOptions
105105
// Determines whether this connection will send the offer or the answer.
106-
offerrer bool
106+
offerer bool
107107

108108
closed chan struct{}
109109
closedRTC chan struct{}
@@ -273,7 +273,7 @@ func (c *Conn) negotiate() {
273273
c.hasNegotiated = true
274274
defer c.negotiateMutex.Unlock()
275275

276-
if c.offerrer {
276+
if c.offerer {
277277
offer, err := c.rtc.CreateOffer(&webrtc.OfferOptions{})
278278
if err != nil {
279279
_ = c.CloseWithError(xerrors.Errorf("create offer: %w", err))
@@ -312,7 +312,7 @@ func (c *Conn) negotiate() {
312312
return
313313
}
314314

315-
if !c.offerrer {
315+
if !c.offerer {
316316
answer, err := c.rtc.CreateAnswer(&webrtc.AnswerOptions{})
317317
if err != nil {
318318
_ = c.CloseWithError(xerrors.Errorf("create answer: %w", err))

0 commit comments

Comments
 (0)