reuse the same Participant ID within the same room/session

This commit is contained in:
David Zhao
2021-01-28 01:14:06 -08:00
parent 0e48711e4b
commit fe83baa662
10 changed files with 232 additions and 17 deletions
-7
View File
@@ -9,7 +9,6 @@ import (
"github.com/twitchtv/twirp"
"github.com/livekit/livekit-server/pkg/auth"
"github.com/livekit/livekit-server/pkg/logger"
)
const (
@@ -132,9 +131,3 @@ func EnsureListPermission(ctx context.Context) error {
func twirpAuthError(err error) error {
return twirp.NewError(twirp.Unauthenticated, err.Error())
}
func handleError(w http.ResponseWriter, status int, msg string) {
logger.Debugw("error handling request", "error", msg, "status", status)
w.WriteHeader(status)
w.Write([]byte(msg))
}