Remove pointless pointer ref for a single string
This commit is contained in:
parent
74ba5931d3
commit
83c61128d8
2 changed files with 3 additions and 3 deletions
2
main.go
2
main.go
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue