EasyRpc.Plugs.NodeSelector (EasyRpc v1.1.0)

Copy Markdown View Source

Selects a target node and stores it in ctx.node.

Uses the NodeSelector from ctx.config.node_selector. On failure (missing selector, empty node list, provider crash), stores an %EasyRpc.Error{} in ctx.error instead of raising.