Remove log when offer is nil

After !414, we started returning a nil offer from pollOffer if the proxy
was not matched with a client. It's not longer an indication of failure,
so we should remove the "bad offer from broker" log message.
This commit is contained in:
Cecylia Bocovich 2024-11-28 12:13:24 -05:00
parent 5b479fdb13
commit 6ecd5bf6d7
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -30,7 +30,6 @@ import (
"crypto/rand"
"encoding/base64"
"fmt"
"github.com/pion/ice/v4"
"io"
"log"
"net"
@ -40,6 +39,8 @@ import (
"sync"
"time"
"github.com/pion/ice/v4"
"github.com/gorilla/websocket"
"github.com/pion/transport/v3/stdnet"
"github.com/pion/webrtc/v4"
@ -611,7 +612,6 @@ func (sf *SnowflakeProxy) makeNewPeerConnection(
func (sf *SnowflakeProxy) runSession(sid string) {
offer, relayURL := broker.pollOffer(sid, sf.ProxyType, sf.RelayDomainNamePattern)
if offer == nil {
log.Printf("bad offer from broker")
tokens.ret()
return
}