remove unused params

This commit is contained in:
yusing 2025-03-08 04:47:24 +08:00
parent 6220d02f32
commit 9f0c29c009
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ var (
}
)
func getSchemePortByImageName(imageName string, port int) (scheme string, portNum int, ok bool) {
func getSchemePortByImageName(imageName string) (scheme string, port int, ok bool) {
if port, ok := ImageNamePortMapHTTP[imageName]; ok {
return "http", port, true
}
@ -68,7 +68,7 @@ func getSchemePortByImageName(imageName string, port int) (scheme string, portNu
return
}
func getSchemePortByAlias(alias string, port int) (scheme string, portNum int, ok bool) {
func getSchemePortByAlias(alias string) (scheme string, port int, ok bool) {
if port, ok := AliasPortMapHTTP[alias]; ok {
return "http", port, true
}

View file

@ -276,7 +276,7 @@ func (r *Route) Finalize() {
lp, pp := r.Port.Listening, r.Port.Proxy
if isDocker {
scheme, port, ok := getSchemePortByImageName(cont.Image.Name, pp)
scheme, port, ok := getSchemePortByImageName(cont.Image.Name)
if ok {
if r.Scheme == "" {
r.Scheme = types.Scheme(scheme)
@ -287,7 +287,7 @@ func (r *Route) Finalize() {
}
}
if scheme, port, ok := getSchemePortByAlias(r.Alias, pp); ok {
if scheme, port, ok := getSchemePortByAlias(r.Alias); ok {
if r.Scheme == "" {
r.Scheme = types.Scheme(scheme)
}