add FIXME

This commit is contained in:
jebbs 2022-10-11 10:51:00 +08:00
parent 793a6f237a
commit ac89366168

View File

@ -50,6 +50,12 @@ func NewBalancer(
} }
// Network implements adapter.Outbound // Network implements adapter.Outbound
//
// FIXME: logic issue:
// picked node is very likely to be different between first "Network() assetion"
// then "NewConnection()", maybe we need to keep the picked node in the context?
// that requests to change the Network() signature of the interface of
// adapter.Outbound
func (s *Balancer) Network() []string { func (s *Balancer) Network() []string {
picked := s.pick() picked := s.pick()
if picked == nil { if picked == nil {