-
Notifications
You must be signed in to change notification settings - Fork 941
Replace copier.Copy with optimized manual deep copy in URL.Clone (#2678) #2812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
@No-SilverBullet @AlexStocks plz review this , i have changed it acc to your suggestions in this new pr and also fixed the cl error. |
common/url.go
Outdated
@@ -779,6 +779,14 @@ func (c *URL) MergeURL(anotherUrl *URL) *URL { | |||
// After Clone, it is a new URL that there is no thread safe issue. | |||
mergedURL := c.Clone() | |||
params := mergedURL.GetParams() | |||
if params == nil { | |||
mergedURL.paramsLock.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to lock because mergedURL is a local variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes i have done the changes but getting this drafter error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This pr is related to pr (#2799 )