Skip to content
Snippets Groups Projects
Commit ad8a392e authored by fangyincheng's avatar fangyincheng
Browse files

Add:add ctx argument

parent af4a03f3
No related branches found
No related tags found
No related merge requests found
......@@ -50,13 +50,13 @@ type URL struct {
Cluster string
}
func NewURL(urlString string) (*URL, error) {
func NewURL(ctx context.Context, urlString string) (*URL, error) {
var (
err error
rawUrlString string
serviceUrl *url.URL
s = &URL{}
s = &URL{baseUrl: baseUrl{ctx: ctx}}
)
// new a null instance
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment