Remove pointless pointer ref for a single string

This commit is contained in:
Muaz Ahmad 2023-08-15 14:34:48 +05:00
parent 74ba5931d3
commit 83c61128d8
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ func NewIngestServer(srvr_type uint8, port string) (error) {
var err error
switch srvr_type {
case 0:
err = rtmp.NewServer(&port)
err = rtmp.NewServer(port)
}
return err
}

View file

@ -12,8 +12,8 @@ type ProtocolParams struct {
stream_key string
}
func NewServer(port *string) (error) {
l, err := net.Listen("tcp", ":" + *port)
func NewServer(port string) (error) {
l, err := net.Listen("tcp", ":" + port)
if err != nil {
return err
}