-
Notifications
You must be signed in to change notification settings - Fork 227
[Feat] Client LB using gRPC specs #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Paulo Valente <16843419+polvalente@users.noreply.github.com>
@doc """ | ||
Initialization for resolvers. | ||
|
||
Calls `resolver_module.start(args)` and returns its result. | ||
""" | ||
@spec start_resolver(module(), args :: term()) :: :ok | {:ok, pid()} | {:error, term()} | ||
def start_resolver(resolver, args \\ nil) when is_atom(resolver) do | ||
resolver.start(args) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure this function is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is still a draft, but the idea is that certain resolvers may need specific initialization, for example when their backend is a GenServer, as is the case with the DNS resolver, which is why this function exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just that one could easily just call resolver.start(args)
directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just that one could easily just call
resolver.start(args)
directly
I will need to interact a little more to know if this is really a fact, I will bring you news soon about this
No description provided.