From 8399e70d769667df4f039a30587a03fb17fd8216 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Thu, 26 Dec 2024 15:25:43 +0100 Subject: [PATCH] remove comments --- srt/server.go | 1 - srt/server_test.go | 1 - 2 files changed, 2 deletions(-) diff --git a/srt/server.go b/srt/server.go index 2b2d59d..8b61971 100644 --- a/srt/server.go +++ b/srt/server.go @@ -333,7 +333,6 @@ func (s *ServerImpl) GetStatistics() []*relay.StreamStatistics { streams := s.relay.GetStatistics() for _, st := range streams { st.URL = fmt.Sprintf("srt://%s?streamid=#!::m=request,r=%s", s.config.PublicAddress, st.Name) // New format - //st.URL = fmt.Sprintf("srt://%s?streamid=play/%s", s.config.PublicAddress, st.Name) // Old format } return streams } diff --git a/srt/server_test.go b/srt/server_test.go index 311f5ed..5217b44 100644 --- a/srt/server_test.go +++ b/srt/server_test.go @@ -46,7 +46,6 @@ func TestServerImpl_GetStatistics(t *testing.T) { streams := s.GetStatistics() expected := []*relay.StreamStatistics{ - //{Name: "s1", URL: "srt://testserver.de:1337?streamid=play/s1", Clients: 2, Created: streams[0].Created}, // Old Format {Name: "s1", URL: "srt://testserver.de:1337?streamid=#!::m=request,r=s1", Clients: 2, Created: streams[0].Created}, // New Format } if err := compareStats(streams, expected); err != nil {