mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-26 09:40:58 +08:00
Code refactoring (change interface to any)
This commit is contained in:
@@ -185,7 +185,7 @@ func inputWebRTC(w http.ResponseWriter, r *http.Request) {
|
||||
id := strconv.FormatInt(time.Now().UnixNano(), 36)
|
||||
sessions[id] = prod
|
||||
|
||||
prod.Listen(func(msg interface{}) {
|
||||
prod.Listen(func(msg any) {
|
||||
switch msg := msg.(type) {
|
||||
case pion.PeerConnectionState:
|
||||
if msg == pion.PeerConnectionStateClosed {
|
||||
|
||||
Reference in New Issue
Block a user