diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index df269aca6..28223162b 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -27,9 +27,6 @@ import ( "github.com/pkg/errors" "golang.org/x/exp/maps" - "github.com/livekit/livekit-server/pkg/agent" - "github.com/livekit/livekit-server/pkg/sfu" - sutils "github.com/livekit/livekit-server/pkg/utils" "github.com/livekit/mediatransportutil/pkg/rtcconfig" "github.com/livekit/protocol/auth" "github.com/livekit/protocol/livekit" @@ -42,6 +39,10 @@ import ( "github.com/livekit/psrpc" "github.com/livekit/psrpc/pkg/middleware" + "github.com/livekit/livekit-server/pkg/agent" + "github.com/livekit/livekit-server/pkg/sfu" + sutils "github.com/livekit/livekit-server/pkg/utils" + "github.com/livekit/livekit-server/pkg/clientconfiguration" "github.com/livekit/livekit-server/pkg/config" "github.com/livekit/livekit-server/pkg/routing" @@ -1003,7 +1004,7 @@ func (r *RoomManager) iceServersForParticipant(apiKey string, participant types. participant.GetLogger().Warnw("could not create turn password", err) hasSTUN = false } else { - logger.Infow("created TURN password", "username", username, "password", password) + logger.Infow("created TURN password") iceServers = append(iceServers, &livekit.ICEServer{ Urls: urls, Username: username, diff --git a/pkg/service/twirp.go b/pkg/service/twirp.go index e41d13cf2..447b9422f 100644 --- a/pkg/service/twirp.go +++ b/pkg/service/twirp.go @@ -26,10 +26,11 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/timestamppb" + "github.com/livekit/protocol/livekit" + "github.com/livekit/livekit-server/pkg/telemetry" "github.com/livekit/livekit-server/pkg/telemetry/prometheus" "github.com/livekit/livekit-server/pkg/utils" - "github.com/livekit/protocol/livekit" ) type twirpRequestFields struct { @@ -407,7 +408,7 @@ func telemetryResponseSent( } a.NodeId = string(nodeID) if statusCode, ok := twirp.StatusCode(ctx); ok { - if status, err := strconv.Atoi(statusCode); err == nil { + if status, err := strconv.ParseInt(statusCode, 10, 32); err == nil { a.Status = int32(status) } }