From 35dd208fba99f5eb9a35b15f7d3349f714271e94 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 3 Feb 2022 13:11:03 -0600 Subject: [PATCH] fix: Incorrect spelling of "offerer" in peer (#154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤦🤦🤦🤦🤦 --- peer/conn.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/peer/conn.go b/peer/conn.go index 32e0c72bbf..e4722b3f3f 100644 --- a/peer/conn.go +++ b/peer/conn.go @@ -65,7 +65,7 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp pingEchoChannelID: 2, opts: opts, rtc: rtc, - offerrer: client, + offerer: client, closed: make(chan struct{}), closedRTC: make(chan struct{}), closedICE: make(chan struct{}), @@ -103,7 +103,7 @@ type Conn struct { rtc *webrtc.PeerConnection opts *ConnOptions // Determines whether this connection will send the offer or the answer. - offerrer bool + offerer bool closed chan struct{} closedRTC chan struct{} @@ -273,7 +273,7 @@ func (c *Conn) negotiate() { c.hasNegotiated = true defer c.negotiateMutex.Unlock() - if c.offerrer { + if c.offerer { offer, err := c.rtc.CreateOffer(&webrtc.OfferOptions{}) if err != nil { _ = c.CloseWithError(xerrors.Errorf("create offer: %w", err)) @@ -312,7 +312,7 @@ func (c *Conn) negotiate() { return } - if !c.offerrer { + if !c.offerer { answer, err := c.rtc.CreateAnswer(&webrtc.AnswerOptions{}) if err != nil { _ = c.CloseWithError(xerrors.Errorf("create answer: %w", err))