bilibili / discovery

A registry for resilient mid-tier load balancing and failover.
MIT License
1.78k stars 401 forks source link

Fix #64 data race due to shallow copy. #65

Closed 0x5459 closed 4 years ago

0x5459 commented 4 years ago

fix #64, deep copy instance to avoid data race.

gitsrc commented 4 years ago

I also found this problem, your adjustment plan should be correct