smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.11k stars 1.17k forks source link

Consistent hash selector patch #800

Closed yuansip closed 1 year ago

yuansip commented 1 year ago

The new test case added is failed without the code change in consistentHashSelector.UpdateServer. That's because the servers map may use empty string "" as value and s.h is cleared when calling consistentHashSelector.UpdateServer