Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35dd208

Browse files
authored
fix: Incorrect spelling of "offerer" in peer (#154)
🤦🤦🤦🤦🤦
1 parentd76737b commit35dd208

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(chanstruct{}),
7070
closedRTC:make(chanstruct{}),
7171
closedICE:make(chanstruct{}),
@@ -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-
offerrerbool
106+
offererbool
107107

108108
closedchanstruct{}
109109
closedRTCchanstruct{}
@@ -273,7 +273,7 @@ func (c *Conn) negotiate() {
273273
c.hasNegotiated=true
274274
deferc.negotiateMutex.Unlock()
275275

276-
ifc.offerrer {
276+
ifc.offerer {
277277
offer,err:=c.rtc.CreateOffer(&webrtc.OfferOptions{})
278278
iferr!=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
iferr!=nil {
318318
_=c.CloseWithError(xerrors.Errorf("create answer: %w",err))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp