Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iSchluff committed Dec 26, 2024
1 parent 31cfd34 commit 8399e70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion srt/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion srt/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8399e70

Please sign in to comment.