clienrtmp: remove useless argument from validateCredentials()

This commit is contained in:
aler9 2021-05-09 14:23:33 +02:00
parent 4d260412c4
commit 639c42feca

View File

@ -190,7 +190,7 @@ func (c *Client) runRead() {
PathName: pathName,
IP: c.ip(),
ValidateCredentials: func(authMethods []headers.AuthMethod, pathUser string, pathPass string) error {
return c.validateCredentials(authMethods, pathUser, pathPass, query)
return c.validateCredentials(pathUser, pathPass, query)
},
Res: sres})
res := <-sres
@ -416,7 +416,7 @@ func (c *Client) runPublish() {
Tracks: tracks,
IP: c.ip(),
ValidateCredentials: func(authMethods []headers.AuthMethod, pathUser string, pathPass string) error {
return c.validateCredentials(authMethods, pathUser, pathPass, query)
return c.validateCredentials(pathUser, pathPass, query)
},
Res: resc,
})
@ -595,7 +595,6 @@ func (c *Client) runPublish() {
}
func (c *Client) validateCredentials(
authMethods []headers.AuthMethod,
pathUser string,
pathPass string,
query url.Values,