mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
I don't think it is a good thing to compare the pointers and we should use the DeepEqual instead. When comparing a solicited route's URL to the URL that was created during the parsing of the configuration, the pointers maybe the same and so u1 == u2 would work. However, there are cases where the URL is built on the fly based on the received route INFO protocol so I think it is safer to use a function that does a reflect.DeepEqual instead. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
4.8 KiB
4.8 KiB