Skip to content

Commit 3bbe8d8

Browse files
authored
Dont panic incorrect due to error (#65)
1 parent 7eb3bcd commit 3bbe8d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/dataplane/http/context.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ type context struct {
3636
logger logger.Logger
3737
requestChan chan *v3io.Request
3838
httpClient *fasthttp.Client
39-
clusterEndpoints []string
4039
numWorkers int
4140
}
4241

@@ -1058,7 +1057,7 @@ cleanup:
10581057
func (c *context) buildRequestURI(urlString string, containerName string, query string, pathStr string) (*url.URL, error) {
10591058
uri, err := url.Parse(urlString)
10601059
if err != nil {
1061-
return nil, errors.Wrapf(err, "Failed to parse cluster endpoint URL %s", c.clusterEndpoints[0])
1060+
return nil, errors.Wrapf(err, "Failed to parse cluster endpoint URL %s", urlString)
10621061
}
10631062
uri.Path = path.Clean(path.Join("/", containerName, pathStr))
10641063
if strings.HasSuffix(pathStr, "/") {

0 commit comments

Comments
 (0)