-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
clone函数切片应该使用深拷贝 #293
Comments
@trash-boy 是否指的 routerSlices 有浅拷贝问题? |
我觉得是有问题的,应该使用深拷贝 |
aceld
added a commit
that referenced
this issue
Dec 18, 2023
@trash-boy #293 这里有个pr,可否review下 |
好的 我会看看的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
其中routerSlices是一个切片,他应该使用深拷贝,否则修改原始hb会修改新的hb,例如
进行测试会发现,修改原始new_hb,new_new_hb会修改
The text was updated successfully, but these errors were encountered: