Fix warning about unused param

This commit is contained in:
Ingo Oppermann 2024-03-14 11:17:50 +01:00
parent f6bba7c571
commit 709fb4ba85
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E
2 changed files with 3 additions and 3 deletions

View File

@ -930,7 +930,7 @@ func validateConfig(config *app.Config, fss []rfs.Filesystem, ffmpeg ffmpeg.FFmp
}
// validateInputAddress checks whether the given input address is valid and is allowed to be used.
func validateInputAddress(address, basedir string, ffmpeg ffmpeg.FFmpeg) (string, error) {
func validateInputAddress(address, _ string, ffmpeg ffmpeg.FFmpeg) (string, error) {
if ok := url.HasScheme(address); ok {
if err := url.Validate(address); err != nil {
return address, err

View File

@ -114,13 +114,13 @@ func (g *rewrite) isLocal(u *url.URL) bool {
return host == base.Host
}
func (g *rewrite) httpURL(u *url.URL, mode Access, identity iamidentity.Verifier) string {
func (g *rewrite) httpURL(u *url.URL, _ Access, identity iamidentity.Verifier) string {
u.User = identity.GetServiceBasicAuth()
return u.String()
}
func (g *rewrite) rtmpURL(u *url.URL, mode Access, identity iamidentity.Verifier) string {
func (g *rewrite) rtmpURL(u *url.URL, _ Access, identity iamidentity.Verifier) string {
token := identity.GetServiceToken()
// Remove the existing token from the path