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
|
var err error
|
||||||
switch srvr_type {
|
switch srvr_type {
|
||||||
case 0:
|
case 0:
|
||||||
err = rtmp.NewServer(&port)
|
err = rtmp.NewServer(port)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@ type ProtocolParams struct {
|
||||||
stream_key string
|
stream_key string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServer(port *string) (error) {
|
func NewServer(port string) (error) {
|
||||||
l, err := net.Listen("tcp", ":" + *port)
|
l, err := net.Listen("tcp", ":" + port)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue